URL slug generator

Turns a headline into a clean, lowercase, hyphenated URL slug.

Paste a title and get a slug you can drop straight into a URL: lowercase, spaces replaced with hyphens, punctuation removed.

Try:
0Words
0Characters
0No spaces
0Sentences
0Paragraphs
0Lines
0Pages
0Reading
0Speaking

Runs entirely in your browser. Your text is never uploaded — open DevTools, Network tab, and you will see zero requests while you use this tool.

How to use it

  1. Paste the page title.
  2. Press Make slug.
  3. Copy the result into your CMS URL field.

What a slug is and what this tool does

A slug is the human-readable part of a URL that identifies one page. In https://example.com/blog/how-to-bake-sourdough/ the slug is how-to-bake-sourdough. It is the part you choose; the rest is site structure.

Paste a title and this tool produces a slug by lowercasing everything, replacing spaces and underscores with single hyphens, stripping punctuation, and collapsing repeated or trailing hyphens. The output is safe to drop straight into a CMS URL field.

TitleSlug
How to Bake Sourdough at Home!how-to-bake-sourdough-at-home
10 Best Laptops (2026 Edition)10-best-laptops-2026-edition
What’s New in v2.1?whats-new-in-v2-1
Café & Bar Review — Part 3cafe-bar-review-part-3

What makes a good slug

Non-Latin characters, numbers and punctuation

A URL can technically contain any Unicode character, encoded as percent escapes. In practice a Cyrillic or Greek slug turns into something like %D1%81%D1%82%D0%B0%D1%82%D1%8C%D1%8F the moment it is copied into a chat message, an email or an analytics report — unreadable, and three to six times longer.

Two workable approaches:

Other characters to handle deliberately:

In the titleRecommended in the slug
&and, spelled out
%, +, #, ?Remove — each has a reserved meaning in a URL
ApostrophesRemove, not replace: whats-new, not what-s-new
Accented lettersFold to the base letter: é to e
German ß and üExpand: ss and ue
DigitsKeep — they are fine and often carry meaning
SpacesHyphen. Never leave a literal space, which becomes %20

Never change a published slug without a redirect

Once a page is live, its URL is an address other people rely on. Editing the slug creates a new page at a new address and leaves the old one returning 404. What breaks:

If a change is genuinely necessary, do it in this order: publish the new URL, add a 301 permanent redirect from the old slug to the new one, update your internal links to point at the new URL directly rather than through the redirect, resubmit the sitemap, and leave the redirect in place permanently. Do not use a 302, which tells search engines the old URL is still the real one.

The practical conclusion: get the slug right before you press publish, because that is the only moment it is free to change.

Doing it without this tool

Privacy: your text never leaves your browser

The slug is built by a regular expression running in JavaScript on this page. Nothing is uploaded, nothing is stored, and there is no account or history.

That matters because the titles being slugged are usually unpublished — a content calendar, a product launch, an announcement with a date attached. Generating the URL locally means the plan does not leave your machine before the page does.

Related tools

camelCase converterConverts any text into the naming style you need — for variables, files and…Morse codeTurn text into dots and dashes, or decode Morse back to words. Everything runs…ROT13One button encodes and decodes — ROT13 is its own reverse.Capitalize linesCapitalises the start of every line, or every sentence, without touching the…Username generatorReadable names built from real words. No xX_ padding, no forced digits.Coin flipHeads or tails in one tap, with a running tally.Fancy textOne box in, twelve Unicode styles out. Copy the one you want.

See all text tools →

Frequently asked questions

What is a URL slug?

It is the readable part of a URL that identifies one page, like how-to-bake-sourdough in example.com/blog/how-to-bake-sourdough/. It is the part you choose yourself.

How long should a slug be?

Three to six meaningful words, roughly 40 to 60 characters. Long enough to describe the page, short enough to stay readable when someone pastes the link.

Should a slug contain stop words?

Usually drop a, the, of and and when the meaning survives without them. Keep them where removing them changes the sense, as in state-of-the-art.

Hyphens or underscores?

Hyphens. Search engines treat a hyphen as a word separator and an underscore as a joiner, so red_shoes can be read as a single token.

What happens to non-Latin letters?

They can stay, but they get percent-encoded into unreadable text when the link is copied elsewhere. Transliterating to Latin is the safer default for anything international.

Can I change the slug of a page that is already published?

Only with a 301 permanent redirect from the old URL to the new one. Without it every inbound link and bookmark returns a 404 and the ranking of the page starts from zero.

Should I put the date or the year in a slug?

Only if the content genuinely expires. A slug containing 2026 looks stale a year later and cannot be updated without a redirect.