Slug Generator
Runs in your browserTurn any text into a clean, URL-safe slug.
Text
Slug
Start typing above…
What is a Slug Generator?
A slug is the URL-safe version of a title — lowercase, hyphen-separated, stripped of punctuation and accents. "10 Tips for Better Sleep!" becomes "10-tips-for-better-sleep". Every major CMS and static site generator derives a page's URL from one, because slugs are readable, shareable, and good for SEO in a way that an auto-generated numeric ID is not.
Accented and non-Latin characters need care: a naive filter that just strips anything outside a-z would delete é entirely rather than turning it into e, silently mangling non-English titles. This tool decomposes accented characters into their base letter plus a separate accent mark first, then removes only the accent mark — so "Café Münchën" becomes "cafe-munchen" rather than "caf-mnchn".
How to use it
- Type or paste your title or phrase.
- The slug generates as you type.
- Choose a separator — hyphen is the SEO convention almost every platform expects; underscore suits some internal systems.
- Set a maximum length if your platform truncates slugs, and the result trims cleanly at a word boundary rather than mid-word.
Examples
10 Tips for Better Sleep!10-tips-for-better-sleepCafé Münchën — Best Coffee?cafe-munchen-best-coffee