URL Slug Generator
Paste a title or a list of titles and get the slug that goes in the address of the page: lowercase, accents removed, punctuation and spaces replaced by a single hyphen or underscore. You can cap the length without cutting a word in half, drop common English words such as the and of, and turn each line into its own slug. Text in scripts that have no ASCII form, such as Chinese or Arabic, is never transliterated: you choose to keep it as it is or to remove it. Everything is done in your browser.
Your slug
creme-brulee-cafe
Lowercase; accents of Latin letters removed (é gives e, ü gives u); ß, æ, œ, ø, đ, ð, þ and ł rewritten; apostrophes deleted; every other run of symbols, spaces and punctuation becomes one separator. Nothing is sent anywhere.
How it works
- Type or paste a title, or one title per line, and tick one slug per line if you have a list.
- Choose a hyphen or an underscore as the separator, and set a maximum length if your system limits it.
- Decide whether to drop common English words, and whether characters with no ASCII form are kept or removed.
- Copy the slug or the whole list, and check the table to see which lines were shortened or came out empty.
What people use it for
Naming a new blog post or product page
Turn the working title into the last part of the address, such as crème brûlée & café becoming creme-brulee-cafe.
Preparing a batch of pages for import
Paste a column of titles from a spreadsheet and copy back one slug per row, with a length limit your CMS accepts.
Cleaning file names
Use the underscore separator to turn a messy title with accents and symbols into a name that is safe in a file system.
Questions
- How is a slug built from the text?
- The text is put in lowercase, a few letters that have no accent form are rewritten (ß becomes ss, æ ae, œ oe, ø o, đ d, ð d, þ th, ł l), and the accents of Latin letters are removed by decomposing each letter and dropping the accent marks, so é becomes e and ü becomes u, not ue. Apostrophes are deleted, so don't gives dont. Every other run of characters that is not a letter or a digit, including spaces, punctuation, symbols and the underscore, becomes one separator, and separators at the start or end are dropped. For example Hello World – 2026 gives hello-world-2026.
- What happens to Chinese, Arabic, Cyrillic and other scripts?
- Nothing is transliterated: guessing how to write 你好 or مرحبا in Latin letters would be inventing a spelling. With Keep, those letters stay in the slug as they are, which modern browsers display but encode as percent sequences when the address is sent. With Remove, every character that has no ASCII form is dropped and acts as a separator, and the page tells you how many were dropped. If nothing is left, it says so rather than returning an empty slug. Accent marks of non-Latin letters, such as the breve of й, are kept in Keep mode.
- How does the maximum length work?
- Whole words are added from the left until the next one, with its separator, would go over the limit, so a slug never ends in half a word. The length counts characters, separators included, from 1 to 200. The only exception is a first word that is longer than the limit by itself: it is cut to the limit and the table marks it. Leave the field empty for no limit. Search engines do not require a fixed length, so use a limit only if your system or your style guide asks for one.
- What are the common words and the limits?
- The optional list has 21 English words: a, an, and, are, as, at, be, but, by, for, from, in, into, is, it, of, on, or, the, to, with. It removes them as whole words only. Remove them with care when they carry the meaning, as in to be or not to be. The tool accepts up to 100,000 characters, and up to 2,000 non-empty lines in one-slug-per-line mode. Blank lines are skipped, and a line that has no letters or digits gives an empty slug that is reported, not hidden.