---
title: "Kebab case"
description: "Convert strings to kebab-case. Hyphen-joined lowercase tokens for CSS, packages, and paths."
---

> HTML: https://trendalyzer.app/tools/kebab-case/
> Index: https://trendalyzer.app/llms.txt

# Kebab case

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.

Readiness: experimental

Input types: text

Output types: text

## Limits

- Joins tokens with hyphens; may keep Unicode letters (not ASCII-only).

## Warnings

- Unicode letters are kept but not linguistically cased.

## Example

Input: HELLO_WORLD

Output: hello-world

## Steps

1. **Paste the phrase or identifier** — Camel, snake, or spaced input is tokenized on separators and case boundaries.
2. **Run locally** — Every token is lowercased and joined with a single hyphen between words.
3. **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.

## 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.

## FAQ



### 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.
