URL slug generator
Turn titles into URL slugs locally by removing punctuation and converting accents. Check the result before changing an existing URL.
Runs entirely in your browser
example.com/your-slug-here
Type a title to begin.
Up to 10,000 lines at a time; each line becomes its own slug.
How to make a URL slug
- Type or paste a title. For several slugs at once, put each title on its own line.
- Choose the separator and options such as lower case, a length limit or dropping small words like "the" and "of".
- Copy the slug, or download all of them as a .txt file.
How the slug is made
Each line of text goes through the same steps. The & sign is written as "and", or treated as punctuation when Write & as "and" is off. Accented letters are converted to their plain Latin form and Greek and Cyrillic letters are transliterated, so "Crème brûlée" becomes "creme-brulee" and "Москва" becomes "moskva". The letter rules decide spellings that differ by language: "Größe & Ökonomie" becomes "grosse-and-okonomie" with General rules and "groesse-and-oekonomie" with German rules, the default on the German page. Apostrophes are removed without leaving a gap, so "don't" stays one word. Every other run of spaces and punctuation becomes a single separator, and separators at the start and end are trimmed.
The preview shows the slug as it would appear at the end of a web address. Keep slugs short and descriptive: a few words that say what the page is about are easier to read, share and remember than a full headline.
Changing a published page's slug changes its address, so links to the old address break unless the site redirects them. Pick the slug before you publish where you can.
Tips
- Check a title's length before you turn it into a slug with the Character counter.
- Need camelCase or snake_case names for code instead? Use the Case converter.
- To put text with spaces and symbols into a URL as it is, encode it with URL encode and decode.
Run this job in code with the paid API. Slug generator API.
Questions
What is a URL slug?
The slug is the readable part of a web address that names one page, such as how-to-bake-bread in example.com/blog/how-to-bake-bread. A good slug is short, lower case, uses hyphens between words and contains only letters and digits, so it reads clearly and never needs escaping.
What happens to accents and special letters?
With ASCII only on, the Letter rules setting decides how letters are written. General rules write accented letters plain (é to e, ü to u, ñ to n) and ß, æ, ø and ł as ss, ae, o and l. German rules write ä, ö and ü as ae, oe and ue; Danish and Norwegian rules write ø and å as oe and aa; Catalan rules write l·l as ll; Serbian and Bosnian rules write đ as dj. Letters a rule does not name are written as in General. The default follows the page language: German rules on the German page, General on every other page. Greek and Cyrillic letters are transliterated to Latin. Characters with no Latin equivalent, such as Chinese or Arabic, are dropped; turn off ASCII only to keep them, and browsers will show them as typed.
Should I use hyphens or underscores?
Hyphens. Search engines treat a hyphen as a space between words, while an underscore can join the words into one. Underscores are still common for file names and some systems, so both are offered.
How does the length limit work?
The slug is cut at the last whole word that fits, so you never get half a word at the end. Only a single word longer than the limit is cut mid-word.