Slugify Text Tool

Enter text to turn it into a clean URL slug.

How it is calculated

The text goes through four steps. First, accented Latin letters are replaced by plain ones from a built-in table (é to e, ü to u, ß to ss, ı to i, ğ to g, æ to ae). Second, everything is made lowercase. Third, every run of characters that is not a to z or 0 to 9 (spaces, punctuation, symbols, apostrophes, existing hyphens and underscores) is treated as one gap. Finally, the gaps are replaced by a single separator, either a hyphen (default) or an underscore, and the separator at the start and end is trimmed. The tool also shows the slug's length in characters.

Only letters that are in the table survive. An accented capital that is missing from the table, and letters from non-Latin scripts such as Cyrillic, Greek or Chinese, are dropped like punctuation. If nothing remains, there is no result. Digits are kept, and word order is not changed.

Worked example

Input: Café Menu: 10 Best Crêpes & Müsli!, hyphen separator. After transliteration and lowercase: cafe menu: 10 best crepes & musli!. The colon, ampersand and exclamation mark are not letters or digits, so they become gaps along with the spaces. The words cafe, menu, 10, best, crepes and musli remain, joined with single hyphens. The slug is cafe-menu-10-best-crepes-musli, which is 30 characters long.

Try this example →

Common mistakes

  • Expecting non-Latin text to be transliterated. A title in Cyrillic, Greek, Arabic or Chinese is not converted to Latin letters; if it contains nothing else, the tool returns no slug.
  • Expecting apostrophes to disappear. "Don't" becomes don-t, because the apostrophe is treated as a gap; remove it by hand if you want "dont".
  • Assuming every accented capital is handled. Capitals missing from the table are dropped, so "ĄĘ" disappears completely while "É" and "Ç" are fine; check the output for uncommon letters.
  • Expecting underscores in the input to stay. In hyphen mode they become hyphens, and in underscore mode hyphens in the input become underscores.
  • Using a long title as a slug. The tool does not shorten it, so remove filler words yourself to keep a URL tidy.

About this calculator

A URL slug is the clean, human-readable identifier that appears at the end of a web address — turning “My Article: 2026 Guide!” into something like “my-article-2026-guide”. Slugification lowercases the text, strips accents and diacritics through transliteration (so “café” becomes “cafe”), removes punctuation and symbols, and replaces spaces and remaining non-alphanumeric characters with hyphens (or underscores), collapsing repeats along the way.

Every CMS, blogging platform and e-commerce catalog does this automatically when you save a title, because clean slugs are both more readable for humans and better for SEO — search engines and users alike parse hyphenated keyword URLs more easily than URLs full of spaces, symbols or percent-encoded characters. This tool applies the same transformation to any text you paste in, so you can generate a slug manually or check what a platform’s auto-slugifier would produce.

Was this helpful?

You can pick up to 3 reactions.

Comments (1)

  • Editorial team

    Pick the slug once and leave it, because changing a published address breaks links to it unless you redirect the old one. Hyphens are the usual choice for web addresses since search engines treat them as word breaks, while underscores suit file names. The sample title gives hello-world-cafe-co, 19 characters. What kind of titles do you turn into slugs?

Popular calculators

All Calculators