Home Developer Tools kebab-case Converter
🍢
Dev

kebab-case Converter

Convert text to kebab-case — and see all four developer case formats simultaneously: kebab-case, camelCase, PascalCase, and snake_case.

🔒 Private — data never leaves your browser ⚡ Instant results 🚫 No login required ∞ No limits
Switch tool: ⊞ CSS Grid Generator 🗜️ CSS Minifier & Beautifier 📦 HTML Minifier ↩️ Htaccess Redirect Generator ⏰ Cron Job Expression Generator 🔧 HTTP Request Builder 🔄 Hex to Text Converter 🔢 Number Sorter 🅿️ PascalCase Converter 🐫 camelCase Converter 🍢 kebab-case Converter
💡 kebab-case is the standard for CSS class names, HTML attributes, URL slugs, npm package names, and most config file keys.
Input text
Live preview — all four developer formats generated simultaneously:
camelCase JS/TS variables, functions, JSON keys
PascalCase Classes, components, types
snake_case Python, PHP, SQL columns
kebab-case CSS, HTML attrs, URLs, npm
SCREAMING_SNAKE Constants, env variables
Train-Case HTTP headers, some frameworks

📖How to Use the kebab-case Converter

  1. 1
    Set up your input

    Fill in the fields or paste your input text. Click Sample to load an example and see the tool in action.

  2. 2
    Click the action button

    Press the main button to process your input. Results appear instantly — all processing runs in your browser, no upload needed.

  3. 3
    Review the output

    Check the output panel. Any errors are shown in a red bar with a clear description so you can fix the input quickly.

  4. 4
    Copy or download

    Click Copy to copy to clipboard, or Download to save the result as a file.

Frequently Asked Questions

What is kebab-case?

kebab-case writes all words in lowercase and separates them with hyphens. "user login count" becomes "user-login-count". The name comes from the appearance of words threaded on a hyphen like a kebab skewer.

When should I use kebab-case?

Use kebab-case for CSS class names and IDs, HTML data-* attributes, URL slugs and paths, npm/yarn package names, file names in web projects, and most YAML/TOML config keys.

Is kebab-case the same as slug-case?

Yes — kebab-case, slug-case, spinal-case, and dash-case all refer to the same format: lowercase words separated by hyphens. The term "slug" is most common in content management and SEO contexts.

What about accented or Unicode characters?

Accented characters are normalised to their ASCII equivalents before conversion: é becomes e, ü becomes u, ñ becomes n, etc. This ensures the output is valid for CSS, HTML attributes, and URLs.

Does this also generate a Train-Case variant?

Yes — the tool shows a Train-Case variant (My-Component-Name) alongside the standard kebab-case. Train-Case is used in some HTTP headers and component naming conventions.

Is my text private?

Yes. All conversion runs locally in your browser. Nothing is sent to any server.