Slug Generator
Turn any title or phrase into a clean URL slug. Handles accents, punctuation and spaces. Runs in your browser.
What is a URL slug and why does it matter?
A URL slug is the last segment of a web address that identifies a specific page in a
human-readable way. Compare /blog/post?id=482 with /blog/how-to-brew-espresso
— the second version is cleaner, easier to remember, and gives search engines an immediate signal
about the page's topic. Getting slugs right is one of the smallest SEO wins with the highest return.
How to use the Slug Generator
- Paste or type any title, heading or phrase into the input box.
- The slug appears instantly below — no button to press.
- Adjust the separator (hyphen, underscore, or period) to match your CMS or framework.
- Toggle Lowercase off if your platform is case-sensitive and you need to preserve capitalisation.
- Click Copy to put the finished slug on your clipboard.
What the generator does under the hood
The conversion happens in four steps. First, accented and special characters are transliterated to their closest ASCII equivalents — é → e, ü → u, ß → ss, æ → ae, and so on — so readers in any language get a meaningful slug rather than a wall of percent-encoded characters. Second, the text is optionally lower-cased. Third, every character that is not a letter or digit is replaced with the chosen separator. Finally, consecutive separators are collapsed and any leading or trailing separators are trimmed.
Common use cases
- Blog posts and articles — turn a working title into a permanent permalink before publishing.
- E-commerce product pages — generate clean URLs for product names with hyphens and diacritics.
- CMS category and tag pages — WordPress, Ghost, Contentful and others expect a slug for every taxonomy entry.
- File and folder naming — use the underscore variant to create Python-friendly or filesystem-safe names.
- API routes — keep endpoint paths readable and consistent across a codebase.
Privacy note
Everything runs entirely in your browser. Your titles and phrases are never sent to any server, stored in a database, or logged anywhere. You can use this tool on sensitive internal document titles or unreleased product names without any risk.
Frequently Asked Questions
What is a URL slug?↓
A slug is the human-readable, URL-safe portion of a web address — for example, in "example.com/blog/my-post-title", the slug is "my-post-title". Slugs use lowercase letters, numbers and hyphens, and avoid spaces or special characters that would be percent-encoded in a URL.
How does the tool handle accents and special characters?↓
Accented letters like é, ü, ñ or ç are transliterated to their nearest ASCII equivalents (e, u, n, c) before any other processing. This means "Café résumé" becomes "cafe-resume" — readable and SEO-friendly without any percent-encoding.
Can I use underscores instead of hyphens in my slug?↓
Yes. Switch the Separator option from Hyphen to Underscore (or Period). Google and most platforms support both, though hyphens are the de-facto standard for human-readable URLs and are broadly recommended by SEO guidance.
Does my text get sent to a server?↓
No. The entire conversion runs client-side in your browser using JavaScript. No text is ever transmitted to any server.