🔗
Slugify String
Convert text to URL-friendly slugs
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