kebab-case Generator

Convert any text to kebab-case — all lowercase, words separated by hyphens. The standard format for CSS class names, URL slugs, and HTML data attributes.

CSSHTMLURL SlugsVue.jsReactTailwind
0 Chars
0 Words
0 Lines

kebab-case Examples

Input

Hello World

kebab-case

hello-world

Input

background color

kebab-case

background-color

Input

my blog post title

kebab-case

my-blog-post-title

Input

User Profile Page

kebab-case

user-profile-page

What is kebab-case?

kebab-case (also called dash-case or hyphen-case) writes all words in lowercase and separates them with hyphens (-). The name refers to how letters are “skewered” together, like food on a kebab stick.

It is the standard for CSS class names, HTML attribute values, URL paths, and Vue.js component names.

kebab-case Usage

CSS class names

.primary-button { }

URL slugs

/blog/my-article-title

HTML data attributes

data-user-id="123"

Vue.js components

<my-component />

NPM package names

react-query, next-auth

Related Tools