Text · Free Tool
Slug Generator
Turn any title or phrase into a clean, URL-safe slug — accents normalized, separators collapsed.
About this tool
Paste a title, product name, or phrase and get a URL-friendly slug back instantly: lowercased, accented characters normalized to their plain equivalents (café becomes cafe), and anything that is not a letter or digit collapsed into a single separator. Choose a hyphen or underscore separator and optionally cap the output length without cutting a word in half.
Consistent slugs matter for SEO-friendly URLs, file names, CSS/HTML IDs, and database slug columns — a stray double hyphen or a leading separator is a common source of broken links and duplicate-content issues that this tool avoids by construction.
Common uses
- Generate a clean URL slug from a blog post or product title
- Create safe file names or anchor IDs from arbitrary user input
- Normalize accented or multi-language titles into ASCII-only identifiers
Frequently asked questions
What happens to accented or non-Latin characters?
Accented Latin characters (é, ñ, ü, etc.) are normalized to their plain ASCII equivalent using Unicode NFD decomposition. Characters with no reasonable ASCII equivalent are removed along with any other non-alphanumeric symbol.
Why hyphens instead of underscores?
Search engines generally treat hyphens as word separators and underscores as joining characters, so hyphens are the SEO-recommended default for URLs — underscores remain useful for things like environment variable names or some file systems.
Is my data uploaded to a server?
No. This tool runs entirely in your browser using JavaScript — nothing you type is transmitted, logged, or stored anywhere. You can even use it offline once the page has loaded.