Slug Generator
Text & Code Tools100% Private · In-BrowserClean, SEO-friendly URL slugs from any title — accents stripped, symbols collapsed, length capped at word boundaries.
Loading tool…
Key features
- Live slug output that updates on every keystroke — no generate button.
- Diacritics removed properly via NFD normalization, so café becomes cafe and Über becomes Uber.
- Every run of non-alphanumeric characters collapses into a single separator; leading and trailing separators are trimmed.
- Choose hyphen or underscore separators, with a lowercase toggle for mixed-case needs.
- Optional max length up to 120 characters — cuts snap back to the last word boundary instead of mid-word.
- Example chips (accents, punctuation, messy spacing) plus char and segment counts under the result.
How it works
Type your title
Enter the article title or phrase — the slug panel updates instantly.
Pick a separator and casing
Choose hyphen or underscore, and toggle lowercase on or off depending on your URL convention.
Cap the length (optional)
Set a max length if your CMS limits URL size; 0 means unlimited. Cuts respect word boundaries so slugs never end mid-word.
Copy the slug
Check the char and segment counts, then Copy slug into your CMS, blog post or route definition.
Tips for better results
- Hyphens are the usual SEO choice — search engines treat them as word separators, while underscores can glue words together.
- Shorter slugs (3–5 meaningful words) are easier to read in search results and share cleanly.
- Numbers are preserved, so '10 Tips for Better SEO' keeps its 10 in the slug.
- Already have messy URLs? Paste one in — the decoder-style cleanup works as a normalizer too.
Frequently asked questions
More Text & Code Tools
View all →Explore all 86 tools
Image, PDF, text, calculator and media utilities — all free, all private, all running right in your browser.
Browse the complete toolkit