Titles to clean URL slugs with transliteration and a length limit
kebab-case Converter
Turn component names and phrases into lowercase, hyphenated names for CSS classes, file names, routes and command line flags.
Loading tool…
How to use kebab-case converter
Paste component names or phrases, one per line.
Keep ASCII only on for URLs and file names.
Check the split shown for the first line.
Copy the kebab-case names or download them.
What this tool does
- Turns PrimaryButton into primary-button and CSSGridLayout into css-grid-layout.
- Removes doubled and leading or trailing hyphens.
- Converts accents to plain letters so names are safe in URLs.
- Handles a list of names in one go.
How the result is verified
Every result is split on its hyphens and compared with the words found in the input; both must give the same words in the same order.
Frequently asked questions
Where is kebab-case used?
CSS class names and custom properties, HTML data attributes, URL paths, file names in many web projects, npm package names and long command line flags such as --dry-run.
Should URLs use hyphens or underscores?
Hyphens. Google's guidance is to separate words in URLs with hyphens, because it treats them as word breaks. Underscores can join words together in how a URL is read.
Is my data uploaded to a server?
No. Everything you drop, paste or type is processed by code running in this browser tab. You can check it yourself: open your browser's developer tools, watch the Network panel, and use the tool. No request carries your data.
Related tools
Phrases or snake_case names to camelCase, acronym and digit aware
camelCase, headers or phrases to snake_case for Python and SQL
Names to slash separated path/case for folders and routes
Every case at once: upper, lower, title, sentence, camel, snake, kebab and more