Kebab Case Converter
Convert text and identifiers to lowercase kebab-case online for URL slugs, CSS classes, filenames, and command names. Read more
Convert text to kebab-case
Kebab case writes words in lowercase and separates them with hyphens. Hello world example becomes hello-world-example.
It is commonly used for URL slugs, CSS class names, custom HTML elements, filenames, package names, and command-line tools. It is also called dash case, spinal case, or Lisp case in some contexts.
How to create kebab case
- Enter a phrase or identifier.
- Convert spaces, underscores, and case boundaries into hyphens.
- Check whether the destination imposes additional URL, filesystem, or naming restrictions.
Kebab-case is a naming convention, not complete URL slug generation. International domains, reserved URL characters, transliteration, uniqueness, and percent-encoding require separate handling.
Kebab case FAQ
Is kebab-case valid as a JavaScript variable?
No. A hyphen is interpreted as subtraction in JavaScript identifiers. Use Lower Camel Case or another valid convention.
Is it the same as snake_case?
No. Snake Case uses underscores.
Can I put the result directly in a URL?
Often, but still apply the URL and routing rules of the destination system.
Input
Output
Share Link
Settings