Text & Regex

Slug Generator

Turn titles, headlines and phrases into clean URL-safe slugs. Tune the separator, case, accents, stop words and length, then copy or download the result. Everything runs in your browser — your text never leaves the page.

Runs in your browser v1.0.0

Slug options

0 keeps the full slug. Search-friendly URLs usually stay under 60 characters.

Rules

Remove accents turns Café into cafe. ASCII only drops non-Latin characters; turn it off to keep them. Expand symbols turns &, @, %, + and = into words. Remove stop words drops short filler words such as the, and and of.

Title or text

one slug per line

Paste a single title, or one per line to convert a whole batch at once.

Slug output

0 slugs


                

How it works

Each line is normalised in order: smart punctuation and apostrophes are tidied, accents are folded away, the text is lowercased, common symbols become words, and every run of characters that is not a letter or number becomes a single separator. The words are then joined, optional stop words are dropped, and the slug is trimmed to your maximum length on a word boundary. The optional share link encodes the text and settings in the URL fragment, which stays in your browser.

Practical uses

Turn titles and phrases into URL-safe slugs, one at a time or as a batch.

Common ways to use it

  • Create clean post or page URLs from headlines.
  • Generate consistent file names or anchor IDs from a list of titles.

A headline to a slug

Input

10 Tips & Tricks for Better CSS

Output

10-tips-and-tricks-for-better-css

Verified with the default options.

Things to keep in mind

  • Symbol expansion and stop-word removal are optional, so the same title can produce different slugs depending on settings.