🔗

Slugify String

Convert text to URL-friendly slugs

Input Text
Separator:
Result will appear here…

About Slugify String

Converts any text to a URL-safe slug: lowercase, spaces and underscores become hyphens, accented characters are transliterated (café → cafe, Ångström → angstrom), everything else that is not a-z, 0-9, or a single hyphen is removed. Choose between hyphen (-), underscore (_), or dot (.) as the separator depending on your convention. Use hyphens for URLs — Google treats hyphens as word separators, which is better for search. Underscores are treated as word joiners.

Common Use Cases

  • Generating URL slugs from blog post or article titles
  • Creating SEO-friendly permalinks for product pages
  • Converting document titles to valid filenames
  • Generating anchor IDs from heading text

Frequently Asked Questions

Hyphens vs underscores in URLs — does it matter?+
Yes. Google treats hyphens as word separators (/json-formatter is two words). Underscores join words (/json_formatter is one word). Use hyphens for SEO.
How are accented characters handled?+
Transliterated to their ASCII equivalent: é→e, ñ→n, ü→u, ç→c. This ensures slugs work in all environments without percent-encoding.
What is removed from the output?+
Everything except a-z, 0-9, and single hyphens/underscores/dots (depending on your separator choice). Consecutive separators are collapsed to one.