Slugify Online — URL Slug Generator
Turn any title or label into a URL-safe slug. Pick hyphen or underscore separators, casing, max length, and whether to strip accents — free and browser-local.
How slugify works
Pipeline: trim → optional diacritic strip (NFD) → non-alphanumeric → separator → collapse → trim edges → casing → max-length truncate on a separator boundary. Without diacritic stripping, non-ASCII letters become separators (ASCII-focused sanitize).
Options
Examples
French title
Input
Slug
Underscore + upper
Input
Slug
Related utilities
Encode URL components with URL encode, or test patterns with the regex tester.
Slugify FAQ
URL slug questions
Does it transliterate German ß → ss?
No. v1 uses Unicode NFD diacritic stripping plus ASCII sanitize — not locale-specific transliteration tables.
What happens with empty input?
You get an empty slug string.
Is the slug uploaded?
No — conversion stays in your browser.
Why truncate on separators?
Cutting mid-word looks ugly in URLs; preferring a separator keeps the last token whole when possible.
More developer utilities in this cluster
Looking for converters, encoders, formatters, and minifiers in one place? Developer tools hub Open the curated developer tools catalogue.