kebab-case Converter
Convert text to kebab-case for CSS classes, URL slugs, and IDs.
Private ● Runs entirely in your browser Your text never leaves your device.No account required.No data uploaded.Nothing stored unless you choose to save it.What is kebab-case?
kebab-case writes all letters in lowercase and joins words with hyphens: "User Profile Image" becomes "user-profile-image". It is the standard for CSS class names, HTML IDs, URL slugs, and command-line flags.
Why is kebab-case good for URLs?
Hyphens are treated as word separators by search engines, so "how-to-count-words" reads as three words rather than one. kebab-case also avoids spaces (which are not valid in URLs) and sidesteps case-sensitivity problems on some servers.
Can I use kebab-case in code identifiers?
Generally no. Most programming languages read the hyphen as a minus sign, so kebab-case cannot be used for variable or function names. Use it for CSS, HTML, URLs, and filenames; use camelCase or snake_case inside code.
How does it handle punctuation and multiple words?
Spaces, underscores, existing hyphens, and camelCase humps are all treated as boundaries, and other punctuation is dropped, leaving a clean slug. Each line is converted independently.