Skip to the content

Slug Generator

Turn a title into a clean URL slug: lowercase, hyphens, no accents.

Between words
chars

Share this tool:TwitterFacebookLinkedInWhatsAppEmail

From title to slug

The slug is the last part of a web address, the bit that names the page. To get from a title to a slug the generator:

  1. makes everything lowercase;
  2. takes the accents off (é becomes e, ü becomes u) and spells out the letters that have no plain form: ß becomes ss, æ becomes ae, œ becomes oe, ø becomes o and þ becomes th;
  3. writes & as "and" and drops apostrophes, so "don't" becomes dont and not don-t;
  4. turns everything else that isn't a letter or a digit into one hyphen, with none at the start or the end.

"Crème Brûlée & Other Desserts (2025 Edition)" comes out as creme-brulee-and-other-desserts-2025-edition.

What makes a good slug

Short and readable. People see the slug in search results and when a link is shared, and it should tell them what is behind it. A few words do that better than the whole title. The maximum length cuts at the end of a word: at 20 characters the example above becomes creme-brulee-and.

Hyphens, not underscores. Google's guidelines for web addresses recommend hyphens over underscores between words, because they make the separate words easier to recognise for people and for search engines. Underscores are there for systems that don't accept hyphens, such as some file and database names.

Lowercase. On most servers /About and /about are two different addresses. If every slug is lowercase, nobody has to remember which one it was.

Small words can go. Leaving out "a", "the" and "of" shortens a slug and rarely changes what it says. Do read the result: "To Be or Not to Be" turns into be-not-be.

Changing a slug later

A slug is part of the address. Change it and every link, bookmark and search result that points at the old address ends up at a page that no longer exists. If a slug has to change after the page went live, add a permanent redirect (status 301) from the old address to the new one.

Other alphabets

Letters outside the Latin alphabet are kept as they are: привет-мир is a valid slug, and browsers show it like that in the address bar. Behind the scenes it travels in encoded form, so the same link pasted into an e-mail may read %D0%BF%D1%80%D0%B8%D0%B2%D0%B5%D1%82-%D0%BC%D0%B8%D1%80.

The generator does not convert Cyrillic, Greek or Chinese into Latin letters. There are several competing systems for each, and picking the wrong one produces a slug nobody would type. Switch on ASCII only if the slug has to consist of a to z and digits; letters that can't be written that way are then left out.

See all 9