CcConvertCase

What is kebab-case? โ€“ Complete Guide with Examples

Published 2026-02-21 ยท convertcase.in

kebab-case uses hyphens to separate words, with all letters in lowercase. The format looks like words "skewered" on a kebab โ€” hence the name.

Try it now โ€” free instant conversion

No signup ยท No limits ยท Works on all devices

Open ConvertCase โ†’

1Examples

my-component, convert-case-tool, user-profile-page

2Why Google Recommends It for URLs

Google's John Mueller confirmed that hyphens in URLs are treated as word separators, helping search engines understand the page topic.

3Where It's Used

URL slugs, CSS class names, HTML data attributes, NPM package names, HTML id attributes, file names on web servers.

Frequently Asked Questions

Can kebab-case be used in JavaScript variables?

No โ€” hyphens are subtraction operators in JS. Use camelCase or snake_case for variable names.

Related Guides

Free Kebab-case Converter Onlinesnake_case vs kebab-case โ€“ Key DifferencesWhat is snake_case? Definition, Examples & Usage