Skip to content
My Convert Case

camelCase Converter — Convert Text to camelCase Online

Change the case of your text by entering it below and choosing your desired case
0 characters • 0 words

What is camelCase?

camelCase is a naming convention where multiple words are joined together without spaces, and each word after the first starts with a capital letter. The first word is entirely lowercase. The name comes from the visual resemblance to a camel's humps created by the uppercase letters rising in the middle of the word: "camelCase."

camelCase is one of the most widely used naming conventions in software development. JavaScript uses it as the standard for variable names, function names, and object properties. JSON uses camelCase keys by convention in most APIs. React component props, TypeScript interfaces, and virtually all JavaScript frameworks use camelCase for their identifiers.

The convention solves a fundamental problem in programming: identifiers cannot contain spaces, so multi-word names must use another separator. camelCase provides an unambiguous, readable separator through capitalisation without adding any extra characters.

Example

InputOutput (camelCase)
hello world foo barhelloWorldFooBar

How to Convert to camelCase

  1. Type or paste your text — enter words separated by spaces.
  2. Click the camelCase button.
  3. Copy the result directly into your code editor.

The converter lowercases all text, then capitalizes the first letter of each word except the very first, and removes all spaces. The result is valid camelCase for use in JavaScript, TypeScript, JSON, and other camelCase contexts.

When to Use camelCase

Use camelCase for JavaScript and TypeScript variable names, function names, method names, object property names, and JSON keys. It's the default naming convention in most JavaScript codebases and the format expected by many APIs.

camelCase is preferred over snake_case in JavaScript-first contexts. If you're writing React, Vue, Node.js, or any modern JavaScript framework, camelCase is the standard you should follow for non-component identifiers.

Common Use Cases for camelCase

  • JavaScript and TypeScript variable and function names
  • JSON object keys and API response fields
  • React props and component state variables
  • Object property names in any language
  • CSS custom property names (CSS variables)
  • Converting user-readable field names to code identifiers

Frequently Asked Questions

What is camelCase?

camelCase joins multiple words with no spaces, capitalizing the first letter of each word except the first. Example: "my variable name" becomes "myVariableName". Widely used in JavaScript, JSON, and most modern programming languages.

What is the difference between camelCase and PascalCase?

In camelCase, the first word is lowercase: "myVariable". In PascalCase, every word is capitalized including the first: "MyVariable". PascalCase is used for class names and React components; camelCase is used for variables and functions.

What is the difference between camelCase and snake_case?

camelCase uses capitalisation to separate words (no extra characters). snake_case uses underscores. camelCase is standard in JavaScript/JSON; snake_case is standard in Python, Ruby, and database column names.

Which programming languages use camelCase?

JavaScript, TypeScript, Java, C#, Swift, Kotlin, and Dart all use camelCase as a primary naming convention. It is also the standard for JSON keys and most REST API response fields.

Related Converters