Handitab

Slug Generator

Convert a title or phrase into a clean URL slug: lowercase letters and digits joined by hyphens or underscores, with accents removed.

About Slug Generator

A URL slug is the readable part of a web address that identifies a page, such as "how-to-make-cold-brew". This generator lowercases the title, strips accents using Unicode NFKD normalization, replaces every run of other characters with a hyphen or underscore, and trims separators from both ends. Each input line becomes its own slug. Only a to z and 0 to 9 are kept, so non-Latin scripts such as Cyrillic or Chinese are removed, not transliterated.

Also known as: URL Slug Generator, Text to Slug.

How to use Slug Generator

  1. Type or paste into the "Input text" box, or press "Use example" to try it with sample data.
  2. Set "Separator" if the defaults do not fit.
  3. The result appears below and updates as you type.
  4. Copy the result with the copy button, or download it as a file where that is offered.

Questions about Slug Generator

Should a URL slug use hyphens or underscores?

Hyphens. Google recommends hyphens to separate words in URLs because it treats them as word separators, while underscores can join the words into one term. The underscore option is there for file names and identifiers.

Does it remove stop words like "the" and "of"?

No. Every word of the title is kept in its original order. If you want a shorter slug, delete the words you do not need from the title before or after converting.

Runs in your browser. Page last updated .

More text tools

All 56 text tools