About this tool
kebab-case writes words in lowercase separated by hyphens, as in main-nav-link. You'll see it in CSS class names, HTML attributes, file names and URL paths. Paste phrases or identifiers in other styles and each line is converted on your device.
How to use kebab-case Converter
- Paste one phrase or name per line.
- Read the kebab-case result on the right.
- Copy or download the list.
Frequently asked questions
How are word boundaries detected?
Spaces, underscores, hyphens, dots and slashes all split words, and so do changes from lowercase to uppercase. That means "user first name", "user_first_name" and "userFirstName" all become user-first-name.
Is this the same as a URL slug?
It's close. For web addresses, the Slug Generator also removes accents and can drop filler words and limit length, which is usually what you want for URLs.
Can I convert many names at once?
Yes. Paste one name per line and every line is converted on its own, so a whole column of field names or variables converts in one go.