About the Slug Generator
The Slug Generator turns a page title or phrase into a URL-friendly slug: lowercase, no punctuation, with words joined by hyphens or underscores. Type a title and the slug appears below, ready to paste into your CMS or code.
How it works
The text is normalized with Unicode decomposition so accented letters split into a base letter and an accent, and the accents are removed. Letters with no decomposition are spelled out (ß → ss, æ → ae, ø → o), & becomes "and", and apostrophes are dropped so "don't" becomes "dont".
Everything that isn't a letter or digit splits the text into words, which are joined with your separator. Optionally, common stop words (a, an, the, of, and…) are removed and the slug is cut to a maximum length at the last whole word. Letters from other scripts, such as Cyrillic or Greek, are kept as they are.
How to use
- 1
Type a title, or several titles one per line.
- 2
Pick a separator and a max length, and choose lowercase and stop-word removal. These options are kept in the page link.
- 3
Copy the slug, or copy all and download for many titles.
Worked examples
Blog title
A post title with punctuation and parentheses.
Underscore separator
Messy spacing and dashes.
The comma is removed and the run of spaces and dashes collapses into one underscore.
Accented input
A French dish name.
Accents are converted to plain letters and & becomes "and".
Frequently asked questions
Why use hyphens instead of underscores in a slug?+
Google has long recommended hyphens because they are treated as word separators in URLs, while underscores may join words together.
What happens to special characters and accents?+
Punctuation is removed, and accented letters are converted to their plain form, so é becomes e and ü becomes u.
Are numbers kept?+
Yes. Digits are kept, so years and list numbers stay in the slug.
Can I change a slug after publishing?+
You can, but set up a 301 redirect from the old URL so existing links and search rankings are not lost.