kebab-case Converter

Convert text to kebab-case, joining lowercase words with hyphens, the format used for URL slugs, CSS class names, and file names. Used for slugs and CSS classes.

kebab-case joins lowercase words with hyphens. It is the usual form for a URL slug, a CSS class name, and a machine-readable file name, because no escaping is needed anywhere.

Output

                

Paste or type something above.

Questions about kebab-case converter

Why do URL slugs use hyphens?
Search engines read a hyphen as a word boundary, while an underscore reads as a joiner.
Is kebab case valid in CSS?
Yes, class names with hyphens are valid and widely used.
Should the result be lowercase?
Yes. Capital letters in a URL are treated inconsistently, so lowercase is the safe form.