Case Converter

Convert a text between camelCase, snake_case, kebab-case, PascalCase, CONSTANT_CASE and more.

What it's for

Every language and code convention uses a different naming style: JavaScript prefers camelCase for variables, Python uses snake_case, classes usually use PascalCase, URLs and CSS use kebab-case, and constants use CONSTANT_CASE. This tool converts a text into all of these formats at once.

How it works

The text is automatically split into words — it works with space-separated phrases as well as text already in camelCase, snake_case or kebab-case.

Conversion examples

The phrase total response time becomes totalResponseTime in camelCase, total_response_time in snake_case and TOTAL_RESPONSE_TIME in CONSTANT_CASE. Handy when mapping a database column (snake_case) to a JavaScript object property.

Acronyms and digits need a second look

Consecutive capitals, as in parseHTMLString, can be split differently depending on the converter, so review the output before a bulk rename. Digits glued to letters, such as item2Total, deserve the same check. Many projects mix styles across layers; pick the one your style guide names and stay consistent.

Frequently asked questions

Does it work if I paste text already in camelCase?

Yes — the tool detects lowercase-to-uppercase transitions and splits the words automatically before converting.

Does it work with accented characters?

Yes, but for technical formats (code variables) it's best to use plain text, since most languages don't allow accents in variable names.

Which style belongs in which language?

Typical conventions: camelCase for variables in JavaScript and Java, snake_case in Python and Ruby, PascalCase for class names in most languages, kebab-case in URLs and CSS classes, and CONSTANT_CASE for constants. Projects can set their own rules, so check the team style guide before renaming anything.

Can I convert several lines at once?

The pasted text is treated as one sequence of words. For a list of variable names, convert one line at a time, otherwise the line breaks are handled as word separators and everything merges into a single identifier.