Skip to content

Kebab case

FormatExperimentalLimited support. Verify anything critical.

Kebab case (dash-case) splits on spaces, underscores, and capital-letter boundaries, lowercases every token, and joins with hyphens (e.g. HELLO_WORLD → hello-world). Common for CSS classes, npm package names, and URL path segments that may keep Unicode letters — use Slugify when you need strict ASCII-only output.

Skip to the tool

This tool processes text on your device. The text is not uploaded.

  • Joins tokens with hyphens; may keep Unicode letters (not ASCII-only).
  • Unicode letters are kept but not linguistically cased.

Steps

Paste the phrase or identifier

Camel, snake, or spaced input is tokenized on separators and case boundaries.

Run locally

Every token is lowercased and joined with a single hyphen between words.

Copy the kebab-case string

Use it for CSS classes, npm names, or readable path segments. Prefer Slugify when you need strict ASCII-only URLs.

How to use Kebab case

Kebab versus Slugify

Kebab-case on this site keeps Unicode letters. Slugify strips diacritics via NFKD and drops anything that is not ASCII alphanumeric, which is what you want for strict URL path segments.

How it works

  1. Enter what you haveType or pick your text. Nothing is submitted anywhere.
  2. It runs in this tabThe calculation happens on your device, using your browser's own data.
  3. Take the resultRead the text, then copy or download.

Reimplemented locally. Not derived from IT-Tools source.

Basis
independent
Licence
MIT
Last reviewed

Frequently asked questions

Why is kebab-case standard for URLs and filenames?

Hyphens naturally act as explicit word delimiters in web paths (SEO-friendly slugs). Unlike underscores or CamelCase, search engine indexers universally treat hyphens as space delimiters, improving keyword parsing.

How does the tokenizer handle uppercase sequences and acronyms?

The transformation safely splits acronym boundaries (e.g. 'XMLHttp' -> 'xml-http' or 'xmlhttp' depending on regex boundary rules), ensuring consistent lowercase hyphenated output.

Are international characters and accents preserved?

Kebab-case retains base Unicode characters but lowercases them. It does not perform ASCII transliteration. For strict ASCII slug generation, use the separate Slugify tool.

Navigation

Type to search…

↑↓ navigate↵ selectEsc close