Skip to tool

kebab-case Converter

Convert any text to kebab-case format.

How to Use This Tool

  1. Enter the text you want to convert in the input field.
  2. The tool automatically converts your text to kebab-case as you type.
  3. Click the 'Copy' button to copy the converted kebab-case text to your clipboard.
  4. Paste the kebab-case text into your CSS, HTML, URLs, or any other application where it's needed.

Learn More About kebab-case Converter

What is Kebab-Case?

Kebab-case is a naming convention where words are separated by hyphens (-). It's commonly used in web development and software engineering.

Why Use Kebab-Case?

  • Readability: Hyphens improve readability by making it easier to distinguish words.
  • Consistency: A standard case format ensures uniformity across projects.
  • Compatibility: Kebab-case is widely supported in CSS, HTML, and URLs.

Common Use Cases in Web Development

  • CSS Class Names: Kebab-case is a standard for naming classes in CSS (e.g., main-navigation, content-wrapper).
  • HTML Attributes: Some HTML attributes benefit from kebab-case, especially when custom data attributes are used (e.g., data-user-id).
  • URLs: Kebab-case is recommended for creating SEO-friendly and readable URLs (e.g., example.com/blog/my-new-article).

Alternatives to Kebab-Case

  • camelCase: Words are concatenated, with each word after the first starting with a capital letter (e.g., myVariableName). See also camelCase Converter.
  • snake_case: Words are separated by underscores (e.g., `myvariablename`). See also snake_case Converter.
  • PascalCase: Similar to camelCase, but the first word also starts with a capital letter (e.g., MyClassName).

About

kebab-case separates words with hyphens and uses all lowercase (e.g. hello-world). It is the standard for CSS class names, HTML data attributes, URL slugs, and many CLI option names.
Convert text to kebab-case for CSS and URLs.
Runs in browser
Yes
No signup required
Yes

Examples

Kebab case

Convert text to kebab-case.
Input
Hello World
Output
hello-world

Use Cases

  • CSS Class Names — Generate BEM-style CSS class names from plain text descriptions.
  • URL Slugs — Convert blog titles or headings to clean URL-friendly slugs.

Frequently Asked Questions

Related case tools: