Slug Generator
Slug Generator normalizes input with NFKD, removes combining marks in U+0300–036F, lowercases, replaces every run outside ASCII a–z and 0–9 with a hyphen, and trims one leading/trailing hyphen. Many Latin accents reduce well, but non-Latin scripts, emoji, symbols, and letters without decompositions can disappear or become separators. It does not ensure uniqueness, reserved-path safety, length, redirects, transliteration quality, or SEO suitability.
Runs locally — files stay on your deviceWill all languages be transliterated?
No. Output is restricted to ASCII letters and digits.
Slugification is a URL-policy decision
A production slug policy must define transliteration, collisions, reserved routes, stability, maximum length, and redirects when titles change.
How it works
NFKD decomposes text, combining marks are removed, lowercase and ASCII filtering produce hyphen-separated output.
Key concepts
ASCII only
Characters outside a-z0-9 become separators.
Collisions possible
Different accented or symbolic titles can yield the same slug.
When to use it
- Draft simple Latin-title slugs.
- Normalize spaces/punctuation to hyphens.
- Create an ASCII candidate for review.
When not to use it
- Do not assume non-Latin transliteration.
- Do not publish without uniqueness/reserved-route checks.
- Do not regenerate stable URLs without redirect planning.
Worked examples
Romanian
- Input
Învăț limba română- Expected output
invat-limba-romana
Common accents decompose.
Punctuation
- Input
Hello, world!- Expected output
hello-world
Runs become one hyphen.
Non-Latin
- Input
東京- Expected output
Empty
No transliteration is provided.
Common mistakes
Assuming uniqueness
No database check. Correction: Resolve collisions.
Changing live slugs
Links break. Correction: Keep stable or redirect.
Expecting every language
ASCII filter removes scripts. Correction: Use language-aware transliteration/Unicode slugs.
Best practices
- Check empty/collision outputs.
- Keep URLs stable.
- Apply route, reserved-word, and redirect policy.
Related operations and differences
Add Prefix to Every Line
Choose Add Prefix to Every Line when you need to add the same prefix before every line.; use Slug Generator specifically for slug.
Add Suffix to Every Line
Choose Add Suffix to Every Line when you need to add the same suffix after every line.; use Slug Generator specifically for slug.
Capitalize Every Word
Choose Capitalize Every Word when you need to capitalize the first character of every word.; use Slug Generator specifically for slug.
Character Counter
Choose Character Counter when you need to count Unicode characters in text.; use Slug Generator specifically for slug.
Extract Email Addresses
Choose Extract Email Addresses when you need to find unique email addresses in text.; use Slug Generator specifically for slug.
Extract URLs
Choose Extract URLs when you need to find unique HTTP and HTTPS links in text.; use Slug Generator specifically for slug.
Limitations and privacy
- NFKD plus limited combining-mark removal and ASCII filter; no full transliteration, uniqueness, reserved routes, maximum length, stopwords, redirect, or URL deployment.
The text is analyzed locally in this browser and is not uploaded by the tool.
Frequently asked questions
Are Romanian accents removed?
Common ones are.
Are non-Latin scripts supported?
They can be removed.
Is uniqueness checked?
No.
Are multiple separators collapsed?
Yes, to one hyphen.