Case Converter Switch text between UPPER, lower, Title, camelCase and more — free, instant, private.

kebab-case Converter

Turn any phrase into kebab-case — free, instant, runs in your browser.

0 words, 0 characters

What is kebab-case?

kebab-case writes every word in lowercase and joins them with hyphens. The words look as if they are skewered on the hyphens like pieces of a kebab — hence the name.

kebab-case examples

Where is kebab-case used?

kebab-case is the standard style for URL slugs, CSS class names and HTML id and class attributes. Web component tag names must contain a hyphen, and many projects name files and CLI flags in kebab-case too — think main-header.css or the --dry-run flag.

kebab-case in code and on the web

Most programming languages read a hyphen as a minus sign, so kebab-case cannot be used for variables — camelCase or snake_case fill that role. For public URLs, however, kebab-case is the recommended choice: search engines treat hyphens as word separators, which makes slugs easier to read and index.

Common mistakes when converting case

Pro tips

Frequently asked questions

Why is it called kebab case?

Because the lowercase words look skewered on their hyphens like meat on a kebab stick. The same style is also known as dash-case or, in older Lisp communities, lisp-case.

Is kebab-case or snake_case better for URLs?

kebab-case. Search engines treat a hyphen as a word separator but an underscore as a joiner, so 'case-converter' is indexed as two words while 'case_converter' is read as one.

Can I use kebab-case for JavaScript variables?

No. JavaScript and most other languages parse the hyphen as a subtraction operator, so identifiers use camelCase (or snake_case in Python and Ruby) instead.

Other case converters

Or switch between every style in one place on the Case Converter homepage.