Code & web

URL slug generator

Turn a title into a clean web address: no accents, no spaces, lowercase.

Embed this calculator on your website

Copy this code and paste it into your page (WordPress, Wix, Webflow, HTML…). It's free: please keep the link to HOD Calc.

How it works

Accents stripped (Unicode NFD normalisation), special characters removed, spaces replaced by the separator, cut at the last whole word.

Results are for guidance only and do not replace professional advice.

Worked example

With the default values:

  • TitleThe 10 Best Gift Ideas Under $20!
  • SeparatorHyphen (-)
  • Maximum length60

you get:

  • Slugthe-10-best-gift-ideas-under-20
  • Example URLhttps://example.com/the-10-best-gift-ideas-under-20
  • Length31 characters

Frequently asked questions

How does the “URL slug generator” tool work?

Accents stripped (Unicode NFD normalisation), special characters removed, spaces replaced by the separator, cut at the last whole word.

What do I need to enter?

Just fill in: title, separator, maximum length. The result updates as you type.

Can you give an example?

Title: The 10 Best Gift Ideas Under $20!; Separator: Hyphen (-); Maximum length: 60 → Slug: the-10-best-gift-ideas-under-20; Example URL: https://example.com/the-10-best-gift-ideas-under-20.

Is this calculator free, and is my data private?

Yes. HOD Calc is completely free with no sign-up. The calculation runs in your browser: nothing you type is sent or stored.