Skip to content
andcode Tools

Slug Generator

🔒 Runs in your browser

Slug
Separator

What makes a good URL slug

A slug is the readable tail of a web address — the part after the last slash that names the page. The best slugs are short, all-lowercase, hyphen-separated and made of plain ASCII letters and digits, because those survive copy-paste, email clients and older systems without percent-encoding. This generator normalizes any title into that shape as you type, entirely in your browser.

How accents and special letters are handled

Diacritics are decomposed with Unicode NFD and their marks removed, so é→e, ș→s and ü→u. Letters that have no accented base — German ß, Nordic ø and æ, Polish ł — are transliterated explicitly (ß→ss, ø→o, ł→l). Every remaining run of spaces, punctuation or emoji collapses to a single separator, and leading and trailing separators are trimmed.

Separator, case and length options

Switch the separator to an underscore for filenames, keep the original casing when a system is case-sensitive, or set a maximum length. The length cap always falls on a separator boundary, so the last whole word that fits is kept and the slug never ends with a stray hyphen.

Frequently asked questions

What is a URL slug?

The human-readable part of a web address that identifies a page, like "slug-generator" in this URL. Search engines and readers both prefer short, descriptive, lowercase slugs.

How are accented and special letters handled?

Diacritics are reduced to their base letter (é→e, ș→s, ü→u) and letters that have no accent form are transliterated (ß→ss, ø→o, œ→oe, đ→d, ł→l).

What happens to emoji, punctuation and spaces?

Every run of non-alphanumeric characters becomes a single separator; leading and trailing separators are trimmed so the slug never starts or ends with one.

Does the max-length option cut words in half?

No — the limit is applied on a separator boundary, so the last whole word that fits is kept and no dangling separator is left behind.

Related tools

Clear local data?

This permanently erases everything this site has saved in this browser:

  • Saved audio projects (Audio Mixer autosave)
  • Project boards, cards and attachments (Kanban)
  • Your favorite tools
  • Preferences, such as your language choice

This can't be undone, and it only affects this browser on this device.