Kebab Case Converter – Convert Text to kebab-case Instantly
The ConvertCasePro kebab-case converter transforms any text — including camelCase, PascalCase, phrases with spaces, or underscore-separated words — into proper kebab-case. All letters become lowercase and word boundaries become hyphens.
What Is kebab-case?
kebab-case is a naming convention where words are joined with hyphens and all letters are lowercase. There are no spaces, no underscores, and no capital letters. Examples: • Input: Background Color • Output: background-color • Input: myComponentName • Output: my-component-name The name is a visual metaphor — words skewered together like pieces of meat on a kebab.
Where kebab-case Is Used
- •CSS property names: Every multi-word CSS property is kebab-case by specification — background-color, font-size, border-radius, margin-top, text-transform. This is not a convention — it's defined by the CSS specification.
- •HTML attributes: Custom data attributes and ARIA attributes use kebab-case — data-user-id, data-track-event, aria-label, aria-describedby.
- •URL slugs: Web URLs use kebab-case for path segments. Google recommends hyphens over underscores because hyphens are treated as word separators, which improves keyword indexing.
- •npm packages: All npm package names use kebab-case — react-router, express, @tanstack/react-query. Package names cannot contain uppercase letters.
- •CLI flags: Command-line tools use kebab-case for options — --dry-run, --output-file, --max-retries, --no-cache.
How to Convert Text to kebab-case
- •Paste or type your text into the input box.
- •Click the kebab-case button.
- •Your text is instantly converted — spaces become hyphens, capitals become lowercase.
- •Click Copy to copy to clipboard, or Download to save as a text file.
- •Works with text that has spaces, underscores, camelCase, or any other separator format.
kebab-case in Modern Web Frameworks
Vue.js components can be referenced as <my-component> in HTML templates. Web Components require kebab-case by specification — custom element names must contain a hyphen. Tailwind CSS classes are all kebab-case: bg-blue-500, text-xl, rounded-full. kebab-case is also the convention for CSS custom property names: --primary-color, --font-size-base, --border-radius-lg.
Frequently Asked Questions
How does the converter handle spaces and underscores?
Can I convert camelCase to kebab-case?
Why is kebab-case used for URLs instead of snake_case?
Can I use kebab-case for variable names in code?
More tools you may need
- Headline Case ConverterApply the title capitalization rules of your style guide.
- Word CounterPaste your text to see all its numbers at once.
- JSON Key Case ConverterRename every key in nested JSON in one pass, leaving the values alone.
- Remove Line BreaksTurn text that is chopped into short lines back into flowing paragraphs.
- Slugify URL GeneratorTurn any headline into a tidy, lowercase, hyphenated slug.
- Fancy Text GeneratorEvery common text style in one list, ready to copy.