TheFileTools

How to turn a title into a URL slug

Make a clean, lowercase web address part from a headline, with accents and punctuation handled for you.

The slug is the readable part at the end of a web address, such as how-to-bake-bread. Blog systems, shops and static site generators all need one, and a title with spaces, capitals and punctuation cannot be used as it is.

Steps

  1. Open Slug generator.
  2. Type or paste the title.
  3. Copy the result. There are no settings.

Each line is converted separately, so a whole column of titles can be pasted in one go and you get one slug per line.

What the conversion does

  • All letters become lowercase.
  • Accents are removed: é becomes e, ž becomes z, ü becomes u. The German ß becomes ss, and đ, ł and ø become d, l and o.
  • Every run of other characters, including spaces, punctuation and symbols, becomes a single hyphen.
  • Hyphens at the start and end are removed.

An example: Crème brûlée: 10 Tips & Tricks becomes creme-brulee-10-tips-tricks.

Limits worth knowing

Only the letters a to z and the digits 0 to 9 survive. A title in Cyrillic, Greek, Arabic or Chinese gives an empty result, because the tool does not transliterate other scripts. Write the title in Latin letters first.

The ü in a German word becomes u, not ue. If your site uses the ue spelling, change it with Find and replace before making the slug.

Nothing is shortened and no words are dropped. A long headline gives a long slug, so cut filler words from the title yourself if you want a short address.

Related tools

A slug is for the path of an address you choose yourself. To put arbitrary text into a link safely, for example a search query, use URL encoder / decoder. For variable names such as snake_case, see Case converter.