Text to kebab-case Converter
Convert text to kebab-case, the format used in CSS class names, URL slugs, and HTML attributes. All processing runs in your browser.
CONVERT TO
Currently converting to kebab-case.
How it works
For camelCase, snake_case, kebab-case and PascalCase, the tool tokenises your input by splitting on spaces, underscores, hyphens, other punctuation and camelCase boundaries, then rebuilds the words in the target format. UPPER CASE, lower case and Title Case change letter case in place and keep your line breaks, spacing and punctuation. Everything runs in JavaScript inside your browser tab.
Processing runs in your browser
All conversion happens using the browser's built-in JavaScript engine. Our servers are not involved at any point.
Related operations
For swapping substrings across pasted text, try find and replace. To alphabetise or dedupe lines after converting, use sort lines. For checking length after a case change, see the word counter.
Frequently asked questions
- What is kebab-case?
- kebab-case joins words with hyphens in lowercase: 'Hello World' becomes 'hello-world'.
- Where is kebab-case used?
- CSS class names, HTML attributes, URL slugs, and CLI flags commonly use kebab-case.
- What happens to existing hyphens and underscores?
- They become word breaks, and a run of separators collapses into one hyphen, so 'user__first-name' becomes 'user-first-name'.
- Are accented letters kept?
- Yes. Letters from any script are kept and lowercased, so 'Café Menü' becomes 'café-menü'. For an ASCII-only URL slug, use the slug generator, which strips accents by default.
Last reviewed September 30, 2026
Other pages for this tool
Related tools
- Background reading: Complete guide to text tools