URL slug generator
Turn a title into a clean, lowercase, hyphenated URL slug.
How it works
Converts a title into a URL-safe slug: lowercase, words joined by hyphens, punctuation removed.
Accented characters are transliterated rather than stripped — café becomes cafe, not caf. Stripping them instead is a common bug that mangles non-English titles and quietly damages the URL.
Hyphens rather than underscores is the convention worth following. Search engines have long treated hyphens as word separators and underscores as word joiners, so my_page reads as one token while my-page reads as two.
This tool runs entirely in your browser. Nothing you enter is sent to a server, logged or stored, and the page keeps working with the network disconnected.
Common questions
- Should URLs use hyphens or underscores?
- Hyphens. They are treated as word separators, whereas underscores join words into a single token.
- What happens to accented characters?
- They are transliterated to their closest ASCII equivalent, so café becomes cafe rather than caf.
Related pages
- Word and character counter Words, characters, sentences, paragraphs and reading time, counted as you type.
- Typing speed test Measure words per minute and accuracy on a one, two or five minute test.
- Remove duplicate lines Strip repeated lines from a list, keeping the first occurrence of each.
- Sort lines alphabetically Sort a list of lines A–Z, Z–A, by length, or numerically.
- JSON formatter and validator Pretty-print, minify and validate JSON, with the exact position of any error.
- Text compare Compare two blocks of text and see which lines were added, removed or changed.
- Regex tester Test a regular expression against sample text, with matches and capture groups shown.
- Case converter Convert text between upper, lower, title, sentence, camel, snake, kebab and other cases.
- Remove empty lines Delete blank lines from a block of text, optionally collapsing runs to one.
- Find and replace Replace every occurrence of a string in pasted text, with optional regex.