Skip to main content

URL Slug Generator

Turn any text into a clean URL slug — accents transliterated, symbols removed.

Runs in your browser — your data never leaves your deviceFree, no sign-up
Options
URL slug

The slug will appear here.

How it works

The text is first normalized with Unicode NFD decomposition and its diacritics stripped (é → e), then the few letters decomposition cannot reduce are mapped explicitly (ß → ss, æ → ae, ø → o, …). Everything is lowercased, any run of non-alphanumeric characters becomes a single separator, and leading and trailing separators are removed.

Features

  • Accent transliteration via Unicode decomposition
  • Special-letter map: ß → ss, æ → ae, ø → o, þ → th, …
  • Hyphen or underscore separator
  • Optional maximum length, cut at word boundaries
  • 100% client-side — nothing leaves your browser

How to use

  1. Paste a title, headline or heading.
  2. Optionally pick a separator and a maximum length.
  3. Press Generate slug and copy the result.

Example

Input: Héllo Wörld! 10 Ünique Cafés & Bars 🎉
Slug:  hello-world-10-unique-cafes-bars

Frequently asked questions

What makes a good URL slug?
Lowercase ASCII letters, digits and hyphens only — no spaces, accents, punctuation or symbols. Slugs should be short, descriptive and stable, because they become part of the URL that users see, share and that search engines index: /blog/10-best-cafes-zurich rather than /blog/10%20Best%20Caf%C3%A9s!
How are accented characters handled?
They are transliterated to their ASCII base using Unicode decomposition: é becomes e, Ü becomes u, ç becomes c. A few letters that decomposition cannot reduce are mapped explicitly — ß becomes ss, æ becomes ae, ø becomes o, ł becomes l, þ becomes th. Nothing is simply deleted if an ASCII equivalent exists.
What happens to characters that have no ASCII equivalent?
Characters like Chinese, Japanese, Korean, Arabic, Hebrew and emoji have no ASCII transliteration, so they are dropped. Note that a purely non-ASCII input (for example a Japanese sentence) produces an empty slug — the tool tells you when this happens.
Can I limit the slug length?
Yes. Set a maximum length and the slug is cut at a word boundary where possible (preferring a clean cut over a truncated word), never exceeding the limit. Use 0 for no limit.
Hyphens or underscores in slugs?
Hyphens are the standard for URLs — Google recommends them and they are easier to read. The underscore option is there for systems that use snake_case identifiers, such as some file naming schemes and internal IDs.
Is my text sent to a server?
No. Slug generation happens entirely in your browser with JavaScript. Nothing you type is transmitted anywhere — you can verify this in your browser's network inspector.