URL Slug Generator

Make a URL slug from a title. Accents are stripped, spaces become hyphens, and you can keep Chinese, Japanese or Korean characters.

A slug is the readable part of a URL

A title like “Café au lait — Größe” should not be pasted raw into a path. Spaces, punctuation and accents get in the way of links, caches and some older servers. A slug keeps the words and replaces the rest with a single hyphen: cafe-au-lait-grosse or, with German expansion, a form that keeps ä as ae.

Chinese, Japanese and Korean can stay in the slug. Modern sites do that, and the characters are meaningful. Turn on “Drop non-ASCII characters” only when the target system rejects them. This page does not invent pinyin; a wrong romanization is worse than keeping 北京.

How to use it

  1. Paste a title, or several titles with “One slug per line”.
  2. Hyphen is the usual separator. Underscore is what some code identifiers still want.
  3. “Strip accents” turns é into e and, by default, ä into a. Choose “German” when the site’s style guide wants ä → ae, ö → oe, ü → ue and ß → ss.
  4. Lowercase is on because most public URLs are compared case-sensitively and people type them in lowercase. Turn it off only for a legacy path that already uses capitals.
  5. Max length counts the slug after cleanup and will not leave a trailing hyphen. 0 means no limit. Very long slugs hurt sharing more than they help search.

What is removed

Apostrophes are deleted, not turned into a hyphen, so “don’t” becomes dont rather than don-t. Other punctuation, emoji and symbols become the separator. Repeated separators collapse. The result is trimmed so it does not start or end with a hyphen.

If you still need the original title’s length, measure it with the word counter before you shorten the slug.

Questions

Why did German Größe not become groesse?

The Latin option only strips the accent, so ö becomes o and ß becomes ss, which is grosse. Choose the German option for groesse.

Can two different titles produce the same slug?

Yes. “Cafe” and “Café” both become cafe. The page that saves the slug has to add a number or an id when the path is already taken. This tool only formats the text.