Convert to kebab-case
Open the toolkit
Free, no sign-up, nothing leaves your browser.
Worked example
Lowercase words joined with hyphens.
- Input
the quick brown fox jumps over the lazy dog
- Output
the-quick-brown-fox-jumps-over-the-lazy-dog
Acronyms
The identifier formats stand or fall on acronyms. A converter that splits on every capital turns XMLHttpRequest into x_m_l_http_request. The rule is to break before a capital that begins a real word, which keeps XML whole — and to leave plurals like IDs alone.
- Input
XMLHttpRequest
- Output
xml-http-request
Words detected: XML + Http + Request
The rules
The identifier formats stand or fall on acronyms. A converter that splits on every capital turns XMLHttpRequest into x_m_l_http_request. The rule is to break before a capital that begins a real word, which keeps XML whole — and to leave plurals like IDs alone.
Every format
The same phrase in all twelve formats. The row marked with an asterisk is this page's format.
| Format | Result |
|---|---|
| UPPERCASE | THE QUICK BROWN FOX JUMPS OVER THE LAZY DOG |
| lowercase | the quick brown fox jumps over the lazy dog |
| Sentence case | The quick brown fox jumps over the lazy dog |
| Title Case | The Quick Brown Fox Jumps Over the Lazy Dog |
| camelCase | theQuickBrownFoxJumpsOverTheLazyDog |
| PascalCase | TheQuickBrownFoxJumpsOverTheLazyDog |
| snake_case | the_quick_brown_fox_jumps_over_the_lazy_dog |
| kebab-case * | the-quick-brown-fox-jumps-over-the-lazy-dog |
| CONSTANT_CASE | THE_QUICK_BROWN_FOX_JUMPS_OVER_THE_LAZY_DOG |
| dot.case | the.quick.brown.fox.jumps.over.the.lazy.dog |
| aLtErNaTiNg | tHe QuIcK bRoWn FoX jUmPs OvEr ThE lAzY dOg |
| iNVERSE | THE QUICK BROWN FOX JUMPS OVER THE LAZY DOG |