URL slug generator
Convert any title or heading into a clean URL slug — lowercase, hyphen-separated, ASCII-safe. Handles accents, emoji, and punctuation correctly.
What a URL slug is
A slug is the human-readable part of a URL that identifies a specific page. In https://stoolme.com/tools/slug-generator, the slug is slug-generator. Good slugs are short, lowercase, hyphen-separated, ASCII-only, and descriptive of the page they identify.
What this tool does
Type or paste any title and the tool produces a clean URL slug from it. It lowercases the text, transliterates accented characters to their ASCII equivalents, removes punctuation, and joins the remaining words with a separator of your choice.
Why slugs matter for SEO
A descriptive slug helps both users and search engines understand what a page is about before they click. Google has confirmed that words in URLs are a (small) ranking signal. More important: slugs that describe the page get higher click-through rates in search results, in social-media previews, and when people share the link in plain text.
Best practices, summarized:
- Use lowercase letters, digits, and hyphens.
- Keep it short — three to five meaningful words is typical.
- Use hyphens, not underscores. Google treats hyphens as word separators; underscores it doesn't.
- Strip stop words ("the", "a", "of") only if the slug is still readable without them.
- Use ASCII characters only. Browsers can render IRI URLs containing Unicode, but copies-and-pastes, link shares, and analytics dashboards often mangle them.
Examples
| Title | Default slug |
|---|---|
| How to make sourdough at home | how-to-make-sourdough-at-home |
| 10 best côtelettes in Paris! | 10-best-cotelettes-in-paris |
| What's the difference between TCP and UDP? | whats-the-difference-between-tcp-and-udp |
| München → Berlin train guide | munchen-berlin-train-guide |
Hyphen or underscore?
Hyphen. Google has stated multiple times that foo-bar is parsed as two words and foo_bar as one. The only place underscores are conventional is for internal-use slugs that should be visually distinct from public ones, or filenames where some build tools prefer them.
How accents are handled
By default the tool transliterates accented characters to their unaccented ASCII equivalents using Unicode NFKD normalization. "Café" becomes "cafe"; "Łukasz" becomes "ukasz" (the bar-through-L doesn't have a clean ASCII equivalent and is dropped). If your site supports IRIs and you want to keep the original characters, turn off the "Transliterate accents" option.
Privacy
The transformation runs in your browser. Nothing is uploaded.
Frequently asked questions
Should I use hyphens or underscores in URLs?
foo-bar as two words and foo_bar as one. Hyphens win every time for SEO.