🐫Case Style Converter

Convert between camel, snake, kebab case

How to use the case style converter

The same identifier is written differently depending on the language and the team convention. JavaScript variables usually use camelCase, Python names and database columns use snake_case, CSS classes and URLs use kebab-case, and constants use CONSTANT_CASE. This tool splits each name you paste into words and joins them back in the style you pick. Put one name per line and dozens convert at once.

How words are detected: underscores, hyphens, dots and spaces are treated as word boundaries, and a lowercase letter followed by an uppercase letter is also a boundary (userName becomes user + Name). With the capital-run option on, HTTPResponse is split into HTTP and Response so you get httpResponse; with it off, the run of capitals stays as one word.

Characters with no upper or lower case, such as Hangul or Kana, are not converted. They are only split on separators and are otherwise left exactly as typed, and the result tells you how many lines contained them. Digits stay attached to the word they belong to. The tool does not check reserved words or syntax, so skim the output before pasting it into code.

Frequently asked questions

What happens if I convert a camelCase name back to camelCase?

The name is split into words and joined again, so it usually comes back unchanged. One exception: with the capital-run option on, HTTPResponse becomes httpResponse.

Does it work on names that contain non-Latin characters?

Yes, but those characters have no case, so the letters themselves stay the same. Only the separators are replaced to match the style you chose, and the count of such lines is shown in the result.