A slug is the human-readable part of a URL that identifies a page, like how-to-clean-text in example.com/guides/how-to-clean-text/. Good slugs are short, readable and stable.

The conversion steps

Converting a title to a slug usually means:

  1. Lowercase everything. Some servers treat /About and /about as different pages; lowercase avoids the ambiguity.
  2. Remove apostrophes so “what’s” becomes whats, not what-s.
  3. Replace accented letters with plain ones: “crème brûlée” becomes creme-brulee.
  4. Turn everything else into separators. Spaces, punctuation and symbols become hyphens, with repeated hyphens collapsed into one.
  5. Trim hyphens from the start and end.

The Slug Generator does all of this, one title per line, and lets you change each step.

Hyphens or underscores?

Use hyphens. Search engines and people read hyphens as word separators, and they are the convention across the web. Underscores are fine for file names and code identifiers but look like part of a single word in URLs.

Should you remove words like “the” and “of”?

Removing short common words makes slugs shorter: “A Guide to the Best Tools” becomes guide-best-tools. That is often an improvement, but not always. “to-do-list” becomes do-list, which is wrong. The generator has a stop-word option, off by default; use it and then read the result.

How long should a slug be?

There is no fixed limit that matters for search. Aim for something a person could read aloud: usually three to six words that describe the page. Drop dates and numbers unless they are essential, because they make the URL go stale when you update the content.

Non-Latin titles

A title in Russian, Greek or Arabic has no ASCII letters, so an ASCII-only slug comes out empty. You can either keep the original letters (turn off “Convert accents to plain letters”) or write a transliterated or translated slug by hand. Unicode slugs work in modern browsers, but they become long percent-encoded strings when copied and pasted, as the URL Encoder shows.

Don’t change published slugs lightly

Changing the slug of a live page breaks every link and bookmark pointing to it. If you must change it, set up a permanent (301) redirect from the old address to the new one.