Back to Developer
Slug generator — URL-safe string from any title

Slug generator — URL-safe string from any title

Turn titles and headings into URL-safe slugs (kebab-case or snake_case). Diacritics (é → e) are normalised to ASCII, emoji and punctuation are stripped, and whitespace is collapsed into the separator. Configurable length cap, case preservation, and non-ASCII handling — all in your browser.

developerURLgenerate

How to use

Choose a separator (kebab / snake / dot) and type a title or heading into the input box. The slug is generated live: diacritics (é → e) are normalised to ASCII, emoji and punctuation are stripped, and whitespace is collapsed into the separator. Turn off Lowercase to preserve the original case; turn off Strip non-ASCII to keep characters like Japanese kanji (the browser will percent-encode them in URLs). The Max length cap trims the slug. To romanise kanji first, run the Kanji-to-rōmaji tool and paste the result here.

FAQ

Is the text uploaded?
No. The slug is generated entirely in your browser via JavaScript. Use it for drafts, internal titles, and unpublished work without worry.
How are diacritics handled?
We Unicode-normalise the input to NFD (separating base letters from combining marks), drop the combining marks, and keep the ASCII base. That turns é into e, ñ into n, ü into u, and so on automatically.
Are kanji and kana romanised?
Not by this tool. If you want to keep them as-is in the slug, turn off Strip non-ASCII — the browser will percent-encode them in URLs. If you need romanisation, run the Kanji-to-rōmaji converter first and paste the result here.
How long should a slug be?
Search engines prefer slugs that are 3-5 words long (roughly 50-70 characters). We default to a maximum of 80, but you can adjust it to suit your CMS or platform constraints.

Related tools