kebab-case Converter

Convert titles, camelCase or snake_case names to kebab-case. Handy for URL slugs, CSS classes and file names.

How the kebab-case converter works

Each line is split into words at spaces, punctuation, underscores and capital letters. The words are made lowercase and joined with hyphens. kebab-case is the usual style for URL slugs, CSS class names and HTML attributes.

Everything runs in your browser. Your text is not uploaded or stored.

Example

Input
My First Blog Post!
backgroundColor
user_profile_page
Result
my-first-blog-post
background-color
user-profile-page

Frequently asked questions

What is kebab-case used for?

URL slugs, CSS class names, HTML attributes and file names, for example my-first-blog-post.

Can I use this as a URL slug generator?

Yes for plain English titles: punctuation is removed and words are joined with hyphens. Accented letters are kept as they are, not transliterated.

More text tools

All of these are also available together on the Text Tools page.