kebab-case Converter

Type or paste text and get kebab-case as you type: all lower case, words joined with hyphens, like main-navigation-menu. It also converts camelCase, PascalCase and snake_case names, so "ProductCard" becomes "product-card".

Enter your text
Result (kebab-case)

Features

  • Converts to kebab-case as you type

  • Example: "Main Navigation Menu" becomes main-navigation-menu

  • Understands spaces, hyphens, underscores, dots and existing camelCase humps

  • Converts a list line by line

  • Switch to any of the other 12 cases with one click

  • Copy the result

  • Runs in your browser: your text is never uploaded. Free, no signup

Where kebab-case is used

CSS classes and HTML attributes

Class names, custom properties and data attributes: btn-primary, data-user-id.

File and folder names

Component files, image names and repository names: hero-banner.png.

URLs and command-line flags

Page addresses and options such as --dry-run. For SEO URLs from titles, the Slug Generator also removes small words and limits length.

kebab-case rules

How text becomes kebab-case

  • All letters are lower case.
  • Words are joined with a hyphen -.
  • Spaces, underscores, dots and other punctuation are removed.
  • Also called dash-case, spinal-case or lisp-case.

How words are split

Words are found at spaces, punctuation, and at the humps of existing camelCase or PascalCase (parseHTTPResponse becomes parse, HTTP, Response), so you can convert between any of the programming cases and back. Each line is converted on its own, so a list of names converts in one go. Letters and digits in Hindi and other scripts are kept.

Other cases and tools

kebab-case Converter - FAQ