What is kebab-case?
kebab-case (also known as dash-case, hyphen-case, or lisp-case) is a naming convention where all letters are converted to lowercase and separated by hyphens (for example, how-to-build-a-custom-text-editor).
Best Uses for kebab-case
- URL Slugs & SEO: Web addresses require hyphenated, lowercase keywords for optimal search indexing and browser readability.
- CSS & HTML: Standard styling conventions (BEM, utility classes) and custom HTML data attributes (
data-user-id) use kebab-case. - CLI Flags & Configuration: Command line flags (
--output-format) and package names on npm.
100% Client-Side Conversion
Convert thousands of lines instantly without data ever leaving your browser. Works completely offline.