Slug Generator

Turn a title into a URL-safe slug.

About Slug Generator

A slug generator turns a title into a URL-safe slug. Accents are stripped, punctuation dropped and words joined with a hyphen, underscore, dot or nothing.

How to use

  1. Type or paste the title (up to 1,000 characters). The slug updates as you type.
  2. Choose a separator: hyphen (default), underscore, dot or none.
  3. Choose the case: lowercase (default), UPPERCASE or Keep, which leaves the original capitalisation.
  4. Copy the slug from the output.

What it does

  • Decomposes accented letters with Unicode NFKD normalisation and removes the combining marks, so "é" becomes "e".
  • Transliterates the Latin letters that have no decomposition (ß → ss, ø → o, æ → ae, œ → oe, ł → l, đ → d, þ → th), then removes every character that is not a letter, digit, underscore, whitespace, tilde or hyphen. Other scripts (for example Chinese characters) are removed, not transliterated, and the tool says so.
  • Splits on runs of whitespace, hyphens and underscores, so "well-known word" becomes three parts, and joins them with the chosen separator.
  • Shows an error when nothing remains after cleaning, for example for input that is only punctuation.
  • Does not check whether the slug is unique or already in use anywhere.

Example

Café au Lait — a Beginner's Guide!
→ cafe-au-lait-a-beginners-guide

Privacy

The slug is built in the browser. No request is made, and nothing is stored.

Frequently asked questions

What is a URL slug?
The human-readable part of a URL that identifies a page, such as "cafe-au-lait" in example.com/posts/cafe-au-lait. It usually contains only lowercase letters, digits and hyphens so it needs no percent-encoding.
Should I use hyphens or underscores in URLs?
Hyphens. Google treats a hyphen as a word separator but an underscore as a word joiner, so "blue-widgets" is read as two words and "blue_widgets" as one.
Why are accents removed from slugs?
Non-ASCII characters are legal in URLs but are percent-encoded when copied or shared, so "café" becomes "caf%C3%A9". Stripping accents keeps the link short and readable everywhere.
Does changing a slug break existing links?
Yes. The old URL stops working unless you add a redirect (HTTP 301) from the old slug to the new one. Pick a slug before publishing and avoid changing it.