Camel Case Converter

Convert any naming convention to camelCase, the JavaScript and Java standard for variables and functions.

49Characters
8Words
3Lines

Everything you type here is processed on your own device. No input is sent to a server, logged, or stored.

What the Camel Case Converter does

Use this camel case converter to convert any naming convention to camelCase, the JavaScript and Java standard for variables and functions. Paste your text in, pick the options you need, and copy the result straight back out. It is most often used for converting a database column name to a JavaScript property. If you want to cross-check the result, there is another camel case converter on FreeToolStation.org.

How to use it

  1. Paste or type your text into the input box.
  2. The target case is already selected — change it from the dropdown if you need a different one.
  3. The converted text appears immediately as you type.
  4. Press Copy to put the result on your clipboard.

How it works

camelCase starts lowercase and capitalises each subsequent word, with no separators. It is the convention for variables and functions in JavaScript, Java, C# methods and Swift, and the near-universal convention for JSON keys in APIs written by JavaScript developers.

Acronyms are the perennial argument. Should an HTTP response code be httpResponseCode or hTTPResponseCode? Google's Java style guide says treat an acronym as an ordinary word, giving httpResponseCode — which is what this tool produces. Some codebases disagree, and consistency within a codebase matters more than which convention you picked.

The conversion handles input in snake_case, kebab-case, CONSTANT_CASE, spaces and PascalCase, so you can paste whichever form you have.

When to use it

  • Converting a database column name to a JavaScript property.
  • Renaming variables when porting code between conventions.
  • Generating JSON keys from a list of field labels.
  • Normalising naming across a codebase.

Common mistakes to avoid

  • Mixing camelCase and snake_case within one codebase or API.
  • Capitalising the first letter, which makes it PascalCase rather than camelCase.
  • Expecting the acronym handling to match your team's convention without checking.

Frequently asked questions

What is camelCase?

A naming convention where the first word is lowercase and each subsequent word is capitalised, with no separators: userFirstName.

How are acronyms handled?

Treated as ordinary words, so "HTTP response code" becomes httpResponseCode. That follows Google's Java style guide; some codebases prefer hTTPResponseCode, which is harder to read.

What is the difference from PascalCase?

Only the first letter. camelCase starts lowercase, PascalCase starts uppercase. camelCase is used for variables, PascalCase for types and classes.

Related tools

See all text & writing tools →