🔗 Slug Generator
Convert text into clean, SEO-friendly URL slugs in your browser.
Last updated: May 18, 2026 · By Λ
By Λ · Updated May 18, 2026 · ~3 min read
Slugs from a developer's perspective
I have migrated three different CMSes in my career and I lost a long weekend to bad slugs every single time. The villains are always the same: a stray em-dash that got URL-encoded into %E2%80%94, a copy-pasted title with a curly apostrophe, or an SEO consultant who decided that the homepage URL needs to be /the-very-best-and-most-comprehensive-guide-to-x. This tool exists because I rebuilt the same Python slugger four times and finally moved it into the browser so I could share it with the marketing team.
Practical advice from rebuilding slugs at scale: keep them short (under 60 characters once you strip stopwords), pick one separator and never mix, and never include numbers that change (article IDs are fine, year suffixes age you out of relevance). Diacritics should be normalized via NFD plus a category strip, not blindly replaced with the closest ASCII letter, because the closest ASCII letter is sometimes wrong (German ö wants oe, not o).
This tool gives you the controls I actually want when slugging: separator choice, lowercase normalization, diacritic handling, optional stopword removal, optional number filtering, and a max-length trimmer that respects word boundaries. There is no server roundtrip at any step, which makes it safe to paste customer titles into during a CMS migration.
How to Use This Tool
- Paste a page title or phrase into the input field.
- Choose your preferred separator style, such as hyphen.
- Set max length and optional filters like stopword removal.
- Click Generate or type live to produce your slug.
- Copy the slug and use it in your route, URL path, or file name.
Key Features
- Generates clean slugs from messy titles in one click.
- Supports custom separators: hyphen, underscore, or dot.
- Optional lowercase conversion and accent normalization.
- Optional stopword and number filtering for cleaner URLs.
- Length limit to help keep URLs short and readable.
Frequently Asked Questions
Why are hyphens common in slugs?
Hyphens are widely used because they are readable, SEO-friendly, and supported consistently across systems and CMS platforms.
Should I remove stopwords?
It depends. Removing stopwords can shorten URLs, but keeping them can preserve meaning. Use whatever keeps the slug clear and stable.
Can I change existing slugs later?
You can, but add proper redirects to avoid broken links and ranking loss. For published pages, keep slug changes minimal.
Does this tool upload my text?
No. The slug is built by a small script embedded in this page, so the titles you paste stay on your own device.