Slugify
Turn any title into a clean URL slug.
—How to use
- 1 Type or paste your title or phrase.
- 2 Choose the separator and whether to lowercase.
- 3 Toggle strict mode to control how punctuation is handled.
- 4 Copy the resulting slug.
About Slugify
Slugify turns a title or phrase into a clean, URL-safe slug — the short, hyphenated string you see in friendly web addresses.
It strips accents and diacritics by normalising to NFKD (so "café" becomes "cafe"), lowercases by default, replaces every run of non-alphanumeric characters with a single separator, and trims separators from both ends.
You can switch the separator between a hyphen and an underscore, keep the original casing, or relax strict mode to preserve some punctuation.
A good slug keeps URLs readable, stable and SEO-friendly, and avoids the encoding mess that spaces and special characters cause.
Writers, bloggers and developers use it constantly when naming pages, files, anchors or database keys.
Because the transformation runs entirely in your browser, you can slugify draft headlines or internal titles without sending them anywhere.
The slug regenerates live as you type, so you can watch a long, punctuation-heavy title collapse into a tidy, predictable string and tweak the separator or casing until it matches the convention your site or codebase already uses.
FAQ
How are accented letters handled?
They are normalised with NFKD and their diacritics removed, so "naïve" becomes "naive".
What is strict mode?
Strict mode keeps only letters and numbers, replacing everything else with the separator; turning it off preserves some punctuation like dots.