Slug Generator
Convert titles into clean, URL-friendly slugs
About Slug Generator
Converts a title or phrase into a clean, URL-friendly "slug" — lowercase, hyphenated, with special characters stripped out — the format used in web page addresses, since a URL with spaces, capital letters, or punctuation either breaks or gets awkwardly encoded by the browser.
Type or paste your title, choose your separator character, and copy the generated slug.
Keep slugs reasonably short and focused on the main keywords of the title — a slug that's just a shortened, readable version of the title tends to work better for both readability and search engines than the full title verbatim, especially once a title runs long.
Watch: Slug Generator in Action
- Should my slug match my page title exactly?
- Not necessarily — keeping slugs reasonably short and focused on the main keywords of the title tends to work better for both readability and search engines than the full title verbatim, especially once a title runs long.
- How do I make slugs for many titles at once?
- Paste one title per line. The result has one slug per line in the same order, and a line that cannot be converted is left blank so the rest stay aligned. Copy Result copies the whole list.
- What happens to accented letters and characters like the German sharp s?
- Accents are stripped so an e with an acute accent becomes e. A handful of letters that do not decompose are mapped by hand, for example the sharp s becomes ss, the o with a stroke becomes o and the ae ligature becomes ae.
- Can I use an underscore or a dot instead of a hyphen?
- Yes. Type one character into Separator. Spaces and runs of hyphens in your text collapse into that single character, and separators at the start and end are trimmed. Leaving the box empty restores the hyphen.
- Why is one line of my result blank?
- That title had no letters or digits the tool keeps, for instance a title in Japanese or only punctuation. Switch on Keep non-Latin letters to retain letters from any script; the warning above the result tells you how many lines were affected.
- How does Max length shorten a slug?
- If the slug is longer than your number, the tool cuts it to that length and then backs up to the last separator, so the result ends on a whole word. With no separator inside the limit, it cuts at the exact character count.
How to use Slug Generator
Type or paste a title into the Text box. The Result box fills in as you type, and Copy Result places it on your clipboard. For several titles at once, put one per line; each line becomes its own slug on the matching line of the result.
Options sit under the text. Separator takes a single character and returns to a hyphen if you leave it empty. Lowercase is on by default. Max length accepts up to three digits and shortens the slug at a separator so it does not stop mid-word. Remove stop words drops a, an, the, of, and, or, to, in, on, at, for, with, by, is and are. The switch labelled with an ampersand and the word and is on by default and spells out the symbol. Keep non-Latin letters keeps letters and digits from any script instead of deleting them.
When to use it
Use it when you are publishing a batch of articles or product pages and need consistent addresses, such as turning a spreadsheet column of titles into slugs in one paste. It also suits renaming files before upload, building anchor ids for headings, or cleaning a headline that contains accented letters, quotation marks or an ampersand.
When not to use it
Do not rely on it to keep addresses stable after launch; if a page is already indexed, changing its slug needs a redirect on your server or CMS. It also cannot check whether a slug is already taken on your site. Titles in scripts such as Chinese or Arabic need Keep non-Latin letters switched on, and some platforms prefer to generate those slugs themselves.
Tips for best results
The ampersand switch and Remove stop words interact. With only the ampersand switch on, Tom & Jerry becomes tom-and-jerry; add stop word removal and the word and disappears, giving tom-jerry. Underscores count as word breaks, so snake_case input turns into separated words. Set Max length last, after reading the full slug once, so you can see where the cut will fall.
Limitations
Without Keep non-Latin letters, anything outside a to z and 0 to 9 is removed once accents are stripped, so a title written entirely in another script produces an empty line, which the tool flags with an amber warning. Max length counts characters in the slug, not words, and backs up to the last separator; if there is none, it cuts mid-word. The stop word list is short and English only.
Privacy
Titles are converted by text-processing code running in your browser tab, so a list of unpublished headlines stays on your device. After your first interaction with a result, the site logs the tool name and a device identifier for usage counting. The titles and slugs are not part of that record.
Next: Case Converter
Fix any inconsistent text casing
More from Text & Writing: