Slugify
Convert "My Great Post: Part 2!" into "my-great-post-part-2". Handles accents, symbols and multiple spaces, with options for separator, case and length.
🔒 100% Client-Side & Private — processed locally in your browser. Files never leave your device.
Options
Your result will appear here
Type or paste your input above, adjust the options, then press Run. Tip: press Ctrl+Enter to run, and ? for every shortcut.
How it works
From a title to a URL segment
A slug is the short, readable piece of a URL that stands in for a title, and this tool converts one to the other in a single pass. Text is lowercased by default, punctuation and symbols are dropped, runs of spaces become a single separator, and accents are folded to their plain ASCII letters, so "My Great Post: Part 2!" returns "my-great-post-part-2".
Choosing the separator and case
Hyphens are the default because search engines and readers both handle them well, but underscores, dots and the empty separator are available for platforms that expect them. The lowercase toggle is separate, so a case-sensitive route can keep the original capitalisation while still having its spaces tidied into the chosen separator.
Strict mode and non-Latin scripts
Strict mode keeps only ASCII and deletes everything else, which is the safe choice for most public URLs. Turning it off lets letters from Cyrillic, Greek and CJK scripts survive, which suits localised sites that serve Unicode paths. Either way an optional maximum length trims the result at a word boundary where possible.
Nothing is uploaded
The whole conversion is a plain string operation that runs in this browser tab. There is no server call, no logging and no state kept between runs, so unpublished titles and draft route names never leave your machine.
Questions
What happens to non-Latin scripts?
In strict mode they are removed. Turn strict off to keep letters from other scripts (Cyrillic, Greek, CJK) — useful for localised URLs on sites that allow Unicode paths.
Why did two words collapse into one?
Symbols and punctuation are removed rather than replaced, so a title like "rock & roll" becomes "rock-roll" because the ampersand disappears and the surrounding spaces bracket the gap. Rewriting the title with a real word avoids the missing separator.
Does the maximum length cut mid-word?
It trims the result to the limit you set and then drops a trailing separator left behind by the cut. It does not look ahead for a word boundary, so check the tail of a long title before publishing it.
Related tools
See categoryCase Converter
Convert between UPPER, lower, Title, Sentence, camelCase, snake_case, kebab-case and more.
Unicode Normalizer
Normalize Unicode text, optionally remove accents and standardize line endings.
Remove Empty Lines
Strip blank and whitespace-only lines, collapse blank runs to one, or trim trailing blanks.
Add Line Numbers
Prefix every line with a running number, with configurable start, separator, zero-padding.