How slug generator works
A slug is a URL-friendly version of a text string, used in web addresses for blog posts, products, and pages. For example, a blog post titled How to Bake Bread becomes the slug how-to-bake-bread, which is clean, readable, and SEO-friendly.
This generator creates slugs by converting text to lowercase, removing accents (so cafe becomes cafe), stripping special characters and punctuation, replacing spaces and separators with your chosen separator (hyphen or underscore), and trimming leading and trailing separators.
The resulting slug contains only lowercase letters, numbers, and the separator character. It is safe to use in URLs and will not break with special characters or non-Latin scripts.