Skip to content
🔗

URL Slug Generator

Convert any text into a clean URL-friendly slug.

Runs in your browser

Updated

One rule set, applied live

Every keystroke is lowercased, trimmed, stripped of anything outside letters, numbers, underscores and hyphens, then spaces become hyphens. Repeated hyphens collapse into one and leading or trailing hyphens are removed. The result updates in the output field as you type, and the copy button places it on the clipboard.

A worked example

"Hello, World! 2026" becomes hello-world-2026. "Café au Lait — 2026" becomes caf-au-lait-2026, because the accented e is not in the allowed set and is deleted rather than transliterated. "Two spaces" collapses to two-spaces. Underscores survive, so "my_page" stays my_page, which is unusual for a slug tool and worth checking if your CMS treats underscores differently.

What it deliberately leaves out

There is no stop-word removal, no maximum length and no duplicate check. A long headline produces a long slug; that is acceptable on most sites but may exceed database column limits. There is also no accent folding, so non-Latin scripts reduce to an empty string rather than a transliterated approximation.

Where it stops

  • German umlauts, Polish diacritics and Cyrillic all disappear instead of becoming ae, l or a phonetic spelling.
  • Punctuation inside a word is deleted without a separator, so "don't" becomes dont rather than do-not.
  • The copy button on an empty result does nothing and gives no feedback.
  • No bulk mode: one string at a time.

Questions people ask

Should slugs use hyphens or underscores?

Hyphens are the safer default because search engines treat them as word separators; underscores are often treated as joining characters.

Can I change the capitalisation instead?

Use the case converter for prose, or the camel case converter for identifiers. To encode an already-built URL, use the URL encoder and decoder.