Toolsel

Slug Generator

Runs in your browser

Turn 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

  1. Type or paste your title or phrase.
  2. The slug generates as you type.
  3. Choose a separator — hyphen is the SEO convention almost every platform expects; underscore suits some internal systems.
  4. Set a maximum length if your platform truncates slugs, and the result trims cleanly at a word boundary rather than mid-word.

Examples

Input
10 Tips for Better Sleep!
Output
10-tips-for-better-sleep
Input
Café Münchën — Best Coffee?
Output
cafe-munchen-best-coffee

Frequently asked questions

Why hyphens instead of underscores?
Google has stated it treats a hyphen as a word separator and an underscore as a joiner — "better-sleep" is read as two words, "better_sleep" as one token "bettersleep". Hyphens are also what nearly every CMS and blogging platform generates by default, so they are the safer choice unless a specific system requires underscores.
What happens to accented characters?
They are decomposed to their base letter and the accent is dropped, so é, è and ê all become e rather than being deleted outright. This keeps non-English titles readable in the resulting slug instead of losing letters.
Can I change a slug after a page is published?
Technically yes, but it changes the URL, which breaks any existing links and loses whatever search ranking that URL had built up. If a slug must change, set up a redirect from the old URL to the new one.
Are numbers kept in the slug?
Yes — digits are treated the same as letters and pass through unchanged. Only punctuation, symbols and whitespace are converted to the separator.