Dev
kebab-case Converter
Input
Converts any format to kebab-case. One conversion per line.
kebab-case Output
hello-world my-class-name some-snake-case random-text-here!
Use URL Slug mode for SEO-safe paths.
Frequently Asked Questions
What is kebab-case?
kebab-case uses all lowercase letters with words separated by hyphens: user-first-name, my-component-name. Standard for HTML attribute values, CSS class names, URL slugs, npm package names, and many configuration file keys.
Why is it called kebab-case?
The visual analogy: words skewered together by hyphens like meat and vegetables on a kebab skewer. Also called spinal-case, lisp-case, or slug-case depending on the community.
Is kebab-case valid in JavaScript variable names?
No. Hyphens (-) are interpreted as the subtraction operator in JavaScript. my-variable would be parsed as my minus variable. Use camelCase or snake_case for JavaScript identifiers. Kebab-case is reserved for HTML/CSS/URLs in web development.