Tools
Slugify: URL slug generator
Turn any title, heading, or phrase into a clean, URL-safe slug. This tool lowercases the text, replaces spaces and punctuation with a single separator, collapses repeats, trims the ends, and strips accents so Café Déjà Vu becomes cafe-deja-vu. Choose your separator, set an optional length limit, and copy the result. Everything runs in your browser.
Text to slug
Type or paste any title. Everything runs in your browser. Nothing is uploaded.
Slug
Live output appears here as you type.
Nothing yet. Start typing above.
What makes a good URL slug
A slug is the last, readable segment of a URL: the part after the final slash that names the page. Clean slugs make links easier to read, share, and remember, and they give search engines a clear, keyword-rich signal about what a page contains. The convention is simple: lowercase letters and digits, words separated by hyphens, and nothing else.
Getting there by hand is fiddly. Real titles are full of capital letters, punctuation, emoji, accented characters, and double spaces, all of which need to be normalized consistently. This slugify tool applies the same set of rules every time: Unicode normalization to fold accents, a single pass to strip anything that is not a basic letter or digit, collapsing of repeated separators, and trimming so the slug never starts or ends with one.
Because the whole thing is client-side, it is safe for internal titles, unreleased feature names, and anything else you would rather not paste into a server somewhere. The slug updates live as you type, and one click copies it to your clipboard.
Frequently asked questions
What is a URL slug?
A slug is the human-readable part of a URL that identifies a page, such as the "my-first-post" in example.com/blog/my-first-post. Good slugs are short, lowercase, and made of words separated by hyphens, which helps both readers and search engines understand the page.
How does the tool handle accented and non-English characters?
It normalizes text with Unicode NFKD and strips the combining diacritical marks, so "Café Déjà" becomes "cafe-deja". A handful of letters that do not decompose automatically (like ß, æ, ø and ł) are mapped to sensible ASCII equivalents. Characters with no Latin equivalent are treated as separators.
Should I use hyphens or underscores?
For public URLs, hyphens are the conventional choice: search engines treat a hyphen as a word separator, while an underscore joins words together. Underscores are more common in file names, database keys, and code identifiers. This tool supports both.
Is my text uploaded anywhere?
No. Slugify runs entirely in your browser using standard Web APIs. Nothing you type is sent over the network, logged, or stored. You can even use it offline once the page has loaded.
Why cap the slug length?
Shorter slugs are easier to read, share, and rank. The optional max-length limit trims the slug to a set number of characters and removes any trailing separator left by the cut, so you never end up with a dangling hyphen.

