Slug Generator
Convert titles into clean URL slugs.
Written by Anil Gautam · Updated
How does the slug generator turn a title into a URL slug?
The conversion runs in a fixed order. Unicode compatibility decomposition (NFKD) splits each accented letter into a base letter and an accent mark, and the marks are dropped, so é becomes e and ü becomes u. The text is then lowercased, and every run of characters outside a to z and 0 to 9, whether spaces, punctuation or symbols, becomes a single hyphen. Hyphens left at either end are trimmed. "Café Crème Brûlée Recipe" becomes cafe-creme-brulee-recipe, and "Save 50% on Café Orders: 2026 Guide" becomes save-50-on-cafe-orders-2026-guide.
Apostrophes and separators turn into hyphens as well. "Don't Panic: A Beginner's Guide" gives don-t-panic-a-beginner-s-guide, a thousands separator turns 10,000 into 10-000, and "C++ vs C# in 2026" collapses to c-vs-c-in-2026. Dots split words too, so "Node.js 20.1 Release Notes" becomes node-js-20-1-release-notes. Delete apostrophes and commas from the title first if you want dont or 10000.
Why are letters missing from my slug?
Letters outside a to z survive only when they decompose into plain Latin letters. Any other letter is removed and splits the word: Straße becomes stra-e, København becomes k-benhavn, Łódź becomes odz and Æsop becomes sop. Type the usual transliteration yourself, such as strasse, kobenhavn or lodz, before converting.
Words in Devanagari, Arabic, Chinese or any other non-Latin script disappear completely. नमस्ते दुनिया produces an empty slug, and "Best चाय in Delhi" becomes best-in-delhi, so write a romanized version of the title for the slug. Compatibility characters do convert: the ligature fi becomes fi, full-width letters become ordinary ones, ² becomes 2 and ½ becomes 1-2.
What is left for you to edit?
Every word stays, including short ones like a, the, for and in, and there is no length limit. The default title "Best Free Online Tools for Everyone" gives best-free-online-tools-for-everyone, 35 characters long; drop filler words by hand if you want a shorter address. Numbers stay too, so a year in the title ends up in the URL and can look dated after you update the page.
For an underscore version, paste the finished slug into Case Converter and choose snake_case, which turns cafe-creme-brulee-recipe into cafe_creme_brulee_recipe. Convert here first, because snake_case on the raw title drops accented letters, turning Café into caf. Slugs are generated in your browser as you type.