Text and Data Tools

kebab-case Converter

Normalize names to lowercase hyphenated text for CSS classes and other naming conventions.

Input Text

Result

Turn phrases, camelCase names, and acronyms into lowercase words joined by single hyphens.

Your input is processed only in your browser and is never uploaded to a server.

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

  1. Enter one name or several names on separate lines.
  2. Choose independent line conversion or a single name for all input.
  3. Click Convert to see the lowercase, hyphenated result.
  4. 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.

Back to Developer Tools