URL Slug Generator

Titles into clean URL slugs, accents flattened, punctuation dropped, one or a whole list at a time.

In short

A good URL slug is lowercase, hyphenated and three to five words. Use hyphens rather than underscores, because search engines treat hyphens as word separators and underscores as joiners.

Slug

—

Last reviewed

Runs entirely in your browser. Nothing you type here is uploaded, stored or logged.

What makes a good slug

  • Lowercase. Some servers treat URLs as case-sensitive, so mixed case creates duplicate-address problems for no benefit.
  • Hyphens, not underscores or spaces. Spaces become %20, which is ugly and breaks when pasted.
  • Three to five words. Descriptive without sprawling.
  • Readable on its own. Someone should be able to guess the page content from the slug alone.
  • Stable. Changing it later breaks every existing link.
  • ASCII only. Accented and non-Latin characters get percent-encoded into unreadable strings when copied.

Hyphens versus underscores

This is settled, and the reason is specific rather than aesthetic. Search engines treat a hyphen as a word separator and an underscore as a word joiner. So annual-report is understood as two words, while annual_report may be read as the single token "annual_report".

There's a practical reason too: URLs are commonly underlined in links, and an underscore disappears into the underline. Hyphens survive.

Accents and non-Latin characters

"Café" in a URL becomes caf%C3%A9 once encoded, which is unreadable when shared and awkward to type. This tool flattens accents to their base letters, é becomes e, ü becomes u, ñ becomes n. Which keeps the slug legible.

For non-Latin scripts, browsers now display internationalised URLs correctly in the address bar, so a Hindi or Arabic slug can be perfectly good for a Hindi or Arabic audience. It's still worth knowing that it percent-encodes when copied into plain text.

Stop words: it depends

Removing "a", "the", "of", "and" and similar shortens a slug and rarely loses meaning. the-complete-guide-to-fixing-a-leaking-tap becomes complete-guide-fixing-leaking-tap, which is shorter and just as clear.

But it depends on the title. Strip stop words from "The Who" and you have nothing. From "War of the Worlds" you get war-worlds. The toggle is off by default because this is a judgement call, not a rule.

Once it's live, leave it alone

Changing a published slug breaks every link to that page, from other sites, from social posts, from someone's bookmarks, from search results until they're recrawled.

If you must change one, set up a 301 redirect from the old address to the new one. That preserves most of the accumulated link value and stops visitors hitting a 404. Without a redirect, you're starting that page from scratch.

Which is a good argument for spending the extra thirty seconds getting it right at publication.

Common mistakes

  • Dates that will age badly. best-tools-2026 looks stale in January.
  • Keyword stuffing. cheap-best-top-tools-online-free reads as spam to humans and search engines alike.
  • Auto-generated IDs. /post/48219 tells nobody anything.
  • The whole title. A 90-character slug gets truncated everywhere it appears.
  • Trailing punctuation. Stray hyphens at either end from stripped punctuation.

Frequently asked questions

What is a URL slug?

The readable part of a web address that identifies the page, the how-to-fix-a-tap in example.com/blog/how-to-fix-a-tap. A good slug is lowercase, hyphenated, short, and describes the page without needing the rest of the URL.

Why hyphens rather than underscores?

Search engines treat hyphens as word separators and underscores as joiners, so annual-report reads as two words while annual_report can read as one. Hyphens are also easier to read in a URL and survive being underlined in a link.

Should I remove stop words?

Usually yes for length, but not at the cost of sense. Dropping "a", "the" and "of" from a long title tightens it. Dropping them from "the who" or "war of the worlds" breaks it. The toggle is off by default so you decide per title.

How long should a slug be?

Three to five words is the usual advice. Long enough to be descriptive, short enough to read at a glance and to survive being pasted into a message without wrapping. Very long slugs get truncated in search results and shared links.

Can I change a slug after publishing?

You can, but every existing link to the old address breaks unless you set up a redirect. If a page has been live and indexed for a while, the safest answer is usually to leave the slug alone even if you would write it differently now.