Convert text to a URL slug online
A good URL slug is lowercase, hyphenated, and free of special characters. Paste a blog title, product name, or sentence and this tool instantly converts it into a clean slug ready to drop into a URL — entirely in your browser. Nothing you type is sent anywhere.
What makes a good slug
A URL slug should be lowercase, hyphen-separated, and free of anything that needs percent-encoding. Lowercase because some servers treat URLs case-sensitively and mixed case invites duplicate-URL problems. Hyphens rather than underscores because search engines have long treated hyphens as word separators and underscores as joiners. No spaces or punctuation because those become ugly encoded sequences that break when pasted into chat apps and emails.
Shorter usually wins
Converting a full headline produces a technically valid but unwieldy slug. Trimming to the three or four words that carry the meaning gives a URL that is easier to read, easier to share verbally, and less likely to be truncated in search results. Stripping filler words like 'a', 'the', and 'how to' costs nothing in clarity and often improves it.
Non-English characters are dropped
Anything outside a to z and 0 to 9 becomes a hyphen, which means accented characters and non-Latin scripts are removed rather than transliterated. For a Hindi or French title, that can leave very little behind. Proper transliteration — turning 'नमस्ते' into 'namaste' rather than nothing — needs a language-aware library, so for non-English titles you will generally want to write the slug by hand.
Frequently asked questions
- How are spaces and punctuation handled?
- Spaces and any non-alphanumeric characters are converted to hyphens, and consecutive hyphens are collapsed into one.
- Does this remove accented characters?
- Accented and non-ASCII characters are stripped since they're converted to hyphens along with other non-alphanumeric characters — for full transliteration support you'd need a language-specific tool.
- Is my text sent anywhere?
- No, conversion happens locally in your browser using JavaScript. Nothing is transmitted.
- Why were my accented characters removed?
- The tool keeps only a-z and 0-9. Transliterating accents and other scripts requires language-specific rules this tool does not implement.
- Should I use hyphens or underscores?
- Hyphens. Search engines treat them as word separators, while underscores join words together.