Slug Generator
Turn a title or any text into a clean, URL-safe slug — lowercase, hyphenated, and free of characters that break URLs.
How to use the Slug Generator
- Type or paste a title or piece of text into the box.
- The URL slug updates live below as you type.
- Click "Copy slug" to copy the result.
How it works
Slug generation runs in three steps: normalize and strip accents (so "café" becomes "cafe"), lowercase everything, then replace any run of characters that aren't a-z or 0-9 with a single hyphen, trimming hyphens from both ends. For example, "10 Best Coffee Shops in New York!" becomes "10-best-coffee-shops-in-new-york", and " Café con leche & churros!! " becomes "cafe-con-leche-churros" — multiple spaces, punctuation, and the ampersand are all collapsed into single hyphens or removed. This matches how most blogging and e-commerce platforms generate slugs from titles.
Frequently asked questions
Is my text uploaded anywhere?
No — the slug is generated entirely in your browser using JavaScript. Nothing is sent to a server.
What exactly does this remove or change?
It lowercases the text, strips accents from letters (é becomes e), replaces spaces and any character that isn't a letter or number with a hyphen, collapses repeated hyphens into one, and trims hyphens from the start and end.
What happens with non-Latin scripts, like Chinese or Arabic?
Accented Latin letters are converted to their plain equivalent (café → cafe), but characters from non-Latin scripts (like Chinese, Arabic, or Cyrillic) don't have a plain-ASCII equivalent, so they're removed rather than guessed at — the same approach most URL slug systems use. If that removes all the characters, the result is empty and a note explains why.
Why use hyphens instead of underscores?
Search engines generally treat a hyphen as a word separator but an underscore as a joining character, so "best-coffee-shops" is read as three words while "best_coffee_shops" may be read as one — hyphens are the SEO-friendly convention.