Slug generator
Turn a title into a clean URL slug as you type. Accents become plain letters, and you choose the separator and length.
Nothing is uploaded. Slugs are made on your device.
How it works
- Type or paste a title. Put the title in the box. Put several titles on separate lines to get one slug per line.
- Choose the separator and options. Pick a hyphen, underscore or dot, lowercase or keep case, a-z only or any script, and an optional maximum length. The slug updates straight away.
- Copy the slug. Press Copy to put the slug, or all slugs, on your clipboard.
What the generator does to your text
The same steps run on every title, in this order:
- Letters that have no plain form of their own are spelled out:
ßbecomesss,æae,øo,łlandþth. An ampersand becomes the wordand. - Accents are removed from letters, so
é,üandñbecomee,uandn. Ligatures and full-width letters fold to plain ones. - Apostrophes inside a word are dropped, so
don'tbecomesdontrather thandon-t. - Everything else that is not a letter or a digit (spaces, punctuation, emoji) separates words. Runs of separators collapse to one, and none is left at either end.
- With a maximum length, the slug stops at the last whole word that fits. A single word longer than the limit is cut.
| Title | Slug | Why |
|---|---|---|
| 10 Tips for Better Sleep! | 10-tips-for-better-sleep | Punctuation is dropped, words joined |
| Café crème brûlée | cafe-creme-brulee | Accents fold to plain letters |
| Straße & Smørrebrød | strasse-and-smorrebrod | ß, ø and & are spelled out |
| Don't panic: it's fine | dont-panic-its-fine | Apostrophes do not split a word |
Hyphens, underscores or dots
Use hyphens for web addresses. Google's URL structure guidance recommends hyphens rather than underscores to separate words, because they make the words easier to tell apart. Underscores suit file names and database keys, and dots suit some file naming schemes and package names.
Keep slugs short and lower case. A slug of three to six meaningful words is easy to read, share and type, and lower case avoids two addresses that differ only by capital letters.
Non-Latin text
By default the slug keeps only the letters a to z and the digits 0 to 9, which every system accepts. Words in other scripts, such as Chinese, Japanese, Russian or Arabic, are removed in that mode, and the tool tells you when that empties the slug. Choose Any script to keep them: modern browsers display such addresses correctly and most publishing systems accept them. The tool does not transliterate (it does not turn привет into privet), because there is no single correct spelling for most scripts.
Private by design
Slugs are made in your browser with plain JavaScript. The text is never uploaded, logged or stored. Need to change the case of a phrase or a variable name instead? Try the case converter.
Related tools
- Word & character counter: Count words, characters, sentences and reading time.
- Case converter: Change text between UPPER, lower, Title and more.
- Lorem ipsum generator: Placeholder text by paragraphs, sentences or words.
- Remove line breaks: Join lines from a PDF or email with a space, comma or your own text.