Slug Generator

Cmd/Ctrl+Enter saves this input to history.

Advertisement

Convert any text into a URL-safe, diacritic-free slug for routes, filenames, or CMS entries. Choose a hyphen or underscore separator and whether to force lowercase.

Frequently asked questions

How does this handle accented characters?
Diacritics are stripped via Unicode normalization (NFD decomposition) rather than dropped outright — "café" becomes "cafe", not "caf". This matches how most static site generators and CMSes build slugs.
What is the difference between this and the Case Converter?
The Case Converter reshapes identifier casing (camelCase, snake_case, etc) for code. This tool is purpose-built for URL/filename slugs: it also strips diacritics, collapses arbitrary punctuation runs, and trims leading/trailing separators — none of which the Case Converter does.
Can I use an underscore instead of a hyphen?
Yes — the separator option supports both. Hyphens are the more common convention for URL slugs and are the default.
Is my text uploaded anywhere?
No. The slug is generated entirely in your browser tab — nothing is sent to a server.
Advertisement