Slug Generator - Clean URL Slugs from Titles or Text
Text to slug
Slug output
Good slugs are short, readable, and stable. Avoid changing published slugs unless redirects are in place.
Advertisement
How the slug cleanup works
The generator normalizes Latin accents, replaces ampersands with "and", removes punctuation that is not useful in a path segment, collapses repeated separators, trims separators from the ends, and applies the length limit after cleanup.
Example: Creme brulee & SEO tips: 10 quick fixes! becomes creme-brulee-and-seo-tips-10-quick-fixes.
Assumptions
- Output is designed for readable URL path slugs, not full URL encoding.
- Accented Latin letters are converted with Unicode normalization where possible.
- Stop-word removal uses a small English list and is optional because exact wording can matter for clarity.
Slug generator FAQs
Does this replace URL encoding?
No. Slug generation creates readable path text such as my-page-title. URL encoding escapes characters in a URL or query value. Use the URL Encoder/Decoder when you need percent-encoding.
What maximum length should I use?
Shorter slugs are easier to read and share. A limit around 60 to 100 characters is practical for many page titles, but your CMS or routing convention may be stricter.
Can slugs contain non-English words?
Many Latin-accented characters are converted to ASCII. Scripts that cannot be transliterated by browser normalization may be removed by this simple slug style.
