Skip to content
AZ Tools

URL Slug Generator

Turn any text into a clean URL slug — strip accents, choose a separator, set a max length.

Slug
hello-world-a-quick-test-of-the-slug-generator

How to use

  1. Type or paste your title.
  2. Pick a separator (- is standard, _ for filenames, . for some URLs).
  3. Set a max length (0 = no limit).
  4. Optionally preserve non-Latin characters.

About this tool

Show

Paste a title or a sentence and get back a URL-safe slug. Accented letters are decomposed and their marks stripped, so café becomes cafe, while whitespace and punctuation collapse into the separator you pick — hyphen, underscore or dot — and a length cap trims at a word boundary instead of mid-word. Worth knowing: decomposition only helps letters that have a base form. German ß and Nordic ø carry no accent to remove, so straße comes out as strae and øre as re unless you handle them first. The preserve-Unicode option keeps Korean, Japanese, Chinese and Cyrillic characters intact for native-language URLs, which every modern browser displays correctly and encodes on the wire.

Frequently asked questions

What does 'preserve Unicode' do?

Off (default): non-Latin characters are removed, so '안녕 World' becomes 'world'. On: they're kept and only punctuation / symbols are dropped, giving '안녕-world'.

How is the max length applied?

The slug is truncated at the max length, then the trailing partial word is removed so the slug ends on a clean separator. This avoids URLs that cut a word in half.

Why are accents stripped?

Many browsers and tools URL-encode accents into percent escapes ('café' → 'caf%C3%A9'), which looks ugly. Stripping with NFKD normalization gives a readable ASCII slug.

Is the input stored?

Only in your browser. Slugs are generated locally; nothing is sent anywhere.

Why did straße become strae?

Because stripping accents only works on letters that decompose into a base plus a mark. German ß and Nordic ø carry no accent to remove, so with Unicode preservation off they are dropped entirely rather than transliterated. Replace them first — ß to ss, ø to o — if the slug has to stay readable.

Should I change a slug after publishing?

Only with a redirect in place. The slug is the page's address, so editing it breaks every existing link and hands search engines a new URL with none of the old one's history. If the title changes, leave the slug alone; if it truly must move, redirect the old path permanently to the new one.

Guides on this topic

Related tools