Slug Generator
Convert any title into a clean, ASCII URL slug. Live preview, diacritic-stripping, custom separator.
What is a slug?
A slug is the human-readable, URL-safe identifier at the end of a web address — the slug-generator piece of /tools/text/slug-generator. Good slugs are lowercase, ASCII-only, short, and use hyphens between words. They help search engines, screen-readers and humans understand what a page is about at a glance, and they survive copy-paste through messaging apps that mangle non-ASCII characters.
How to use this generator
Paste any title — including emoji, accents, punctuation, or multi-language text — into the box above. The slug updates as you type. Pick a hyphen or underscore separator (most blog and CMS engines prefer hyphen for SEO), and optionally cap the length if your routing layer enforces a limit. Hit Copy to put the slug on your clipboard.
Slug best practices
Keep slugs short and meaningful — a few keywords, ideally under 60 characters. Don't include stop words (the, a, of) unless they change meaning. Once a URL is published, never change the slug without setting up a 301 redirect; broken links cost you traffic and link equity. For internationalised content, generate the slug from the localised title rather than translating it after the fact, so the URL reflects what readers in that locale would search for.
Examples
| Input | Slug |
|---|---|
| Hello, World! | hello-world |
| São Paulo & Rio | sao-paulo-rio |
| The 100 Best Books | the-100-best-books |
| café—français | cafe-francais |
| __Already_Slug__ | already-slug |
Frequently asked questions
What does this tool do to my text?
Hyphen or underscore — which is better?
Will diacritics be stripped properly?
cafe, São Paulo becomes sao-paulo, and so on across Latin-derived alphabets. Non-Latin scripts (Cyrillic, Greek, CJK) are dropped entirely; for those, transliterate to ASCII first or pre-translate the title.
EN
PT
ES