Et
EditText.app

kebab-case Converter

Convert text to kebab-case for CSS classes, HTML IDs, and URLs. Free online kebab-case converter, no signup needed.

🔒 Your text stays in your browser — nothing is sent to our servers
Input
0Characters
0No spaces
0Words
0Sentences
0Lines
< 1 minRead time
Result
How to Use

Three steps to get started

1

Paste your text

Enter a phrase, camelCase, or any text format.

2

Converts to kebab-case

All words lowercased and joined with hyphens. Other separators removed.

3

Copy the identifier

Click Copy and paste into your CSS, HTML, or URL.

About This Tool

kebab-case: the choice for CSS and URLs

kebab-case is the preferred convention for CSS class names, HTML attributes, URL slugs, and file names in web development. All letters are lowercase, and words are separated by hyphens — making it both human-readable and URL-safe.

Common uses:

  • CSS classes: .button-primary, .nav-menu-item, .hero-section
  • HTML attributes: data-user-id, aria-label
  • URL paths: /blog/my-first-post, /docs/getting-started
  • NPM package names: react-query, next-auth

The converter accepts any input format and produces clean kebab-case. It's particularly useful when converting camelCase JavaScript names to kebab-case CSS counterparts, or preparing text for URL generation. All processing is done locally in your browser — no server, no tracking, no limits.

FAQ

Frequently Asked Questions

Related Tools