URL Slug Generator
Convert any text into a clean, SEO-friendly URL slug with configurable separator and options.
Input Text
Separator
Options
About This Tool
The URL Slug Generator converts human-readable text into clean, URL-safe slugs for web addresses, file names, and database keys. It handles accented characters (é→e, ü→u), converts symbols (&→and, @→at), and joins words with your chosen separator.
Options include forcing lowercase (recommended for SEO) and a maximum length that truncates cleanly at the last separator. All processing runs in the browser.
How to Use
- Type or paste a title into the input, or click a sample button.
- Select a Separator: hyphens are standard for URLs (Google-recommended), underscores for filenames, dots for technical contexts.
- Toggle Force lowercase for canonical SEO slugs. Optionally set a maximum length.
- Copy the generated slug and use it in your CMS, router, or API.
Use Cases
Blog writers generate URL paths from post titles. Developers create API endpoint slugs from user-provided names. E-commerce sites generate product URLs from product names.
FAQ
- Why use hyphens instead of underscores? — Google treats hyphens as word separators in URLs, improving keyword matching. Underscores are treated as part of the word. For SEO, hyphens are recommended.
- What happens to characters not in the transliteration map? — Non-Latin characters not in the map (CJK, Arabic, etc.) are removed. Common European accented characters are covered.
- Does the max-length option cut mid-word? — No. The tool truncates at the last separator before the limit, so words are not split.