Slugify Online — URL Slug Generator

Turn any title or label into a URL-safe slug with a live preview. It offers Cyrillic transliteration, hyphen or underscore separators, letter case, a custom maximum length, and accent stripping. It is free and runs in your browser.

Loading…
Slugify
Build URL-safe slugs from titles. The tool transliterates Cyrillic, strips diacritics with NFD, sanitizes to ASCII, collapses separators, applies casing, and truncates cleanly at a maximum length.

How slugify works

The text goes through these steps in order. It is trimmed, Cyrillic and ß are transliterated, and accents are optionally stripped with NFD. Non-alphanumeric characters become the separator, repeated separators collapse, and the edges are trimmed. Casing is applied, and the result is truncated to the maximum length at a separator boundary. The live preview updates as you type. CJK and other scripts that are not covered are not transliterated. They become separators and may yield an empty slug.

Options

Separator (- / _)
Hyphens suit typical URL paths, and underscores suit identifier-style slugs.
Casing (lower / upper / preserve)
Lower is the web default, upper suits constants, and preserve keeps the original letter case after sanitizing.
Max length (0 = unlimited)
Enter any limit up to 500 characters. 0 means unlimited. Truncation prefers cutting on a separator so you do not leave a trailing separator.
Strip diacritics
On by default: é becomes e through Unicode NFD. Turn it off only if you accept that ASCII-only sanitizing drops accents.

Examples

French title

Input

Café Déjà Vu!

Slug

cafe-deja-vu

Underscore + upper

Input

Hello World (separator _, upper)

Slug

HELLO_WORLD

Related utilities

To convert identifier case (not URL slugs), use the case converter. Encode URL components with URL encode.

Slugify FAQ

URL slug questions

Does it transliterate Cyrillic or German ß?

Yes. Cyrillic letters map to Latin approximations (for example Привет becomes privet), and ß becomes ss before the ASCII sanitizing. CJK and Arabic are not transliterated.

What happens with empty input?

You get an empty slug string.

Is the slug uploaded?

No. The conversion stays in your browser.

Why truncate on separators?

Cutting mid-word looks unpolished in URLs. Preferring a separator keeps the last token whole when possible.

Timestamps, UUID, ULID, Nanoid, cron, passwords, regex, slugs, number bases, letter case, text diff, chmod and Lorem Ipsum, all in your browser.