Back to Case Converter

kebab-case Converter

Convert your text to kebab-case instantly using our Case Converter tool. Perfect for URL slugs and CSS class names.

What is kebab-case?

kebab-case is a naming convention that uses hyphens to separate words, with all letters in lowercase. It is the standard format for URL slugs, CSS class names, HTML data attributes, and file names. Hyphens are preferred over underscores in URLs because search engines treat hyphens as word separators, improving SEO.

Examples

Input

Hello World

kebab-case

hello-world
URL slug

Input

userProfile

kebab-case

user-profile
CSS class name

Input

getUserById

kebab-case

get-user-by-id
HTML data attribute

SEO Benefits

Google and other search engines treat hyphens as word separators in URLs. This means a URL like example.com/how-to-use-kebab-case is parsed as individual words, helping search engines understand the page content. Underscores are not treated as separators, making kebab-case the SEO-recommended format for URL slugs.