About This Tool
kebab-case Converter joins word tokens with hyphens. It uses the same rules as the camelCase and snake_case tools, keeping word boundaries consistent across all three formats.
How to Use It
- Enter one name or several names on separate lines.
- Choose independent line conversion or a single name for all input.
- Click Convert to see the lowercase, hyphenated result.
- Copy or download it, then check any additional rules for its intended use.
Examples
- Hello World → hello-world; helloWorld → hello-world.
- XMLHttpRequest → xml-http-request.
- hello_world → hello-world; Café Name → café-name.
Rules and Limits
Words are identified from common separators, case changes, and acronyms, then lowercased and joined with a single hyphen. Every word is lowercased and joined with a single hyphen. This tool does not perform URL encoding, transliteration, or full slug validation; Chinese characters and other Unicode text are preserved.
Common Uses
- Organize CSS class names.
- Standardize component, directory, or configuration names.
- Convert field lists between naming conventions.
Privacy
Your text, files, and previews are processed in your browser. Your input is never uploaded or automatically saved. Save anything you need to keep before leaving the page.
FAQ
What is kebab-case?
Lowercase words are joined by hyphens, as in user-name.
How does it differ from snake_case?
Tokenization is the same; the separator is a hyphen instead of an underscore.
Does it automatically create a URL?
No. It only changes naming style. It does not percent-encode text or guarantee compliance with every URL or routing rule.
Does batch conversion combine all lines?
Not by default. Each line is converted separately. Turn the per-line option off to treat all input as one name.