getwordcount.com

camelCase Converter

Convert text to camelCase for variables and keys.

Copied to clipboard

This camelCase converter joins your words with no spaces and capitalises each word after the first — turning user first name into userFirstName. It is the naming style used for variables, function names and JSON keys in most programming languages.

How to use the camelCase converter

  1. Type or paste a phrase, or an identifier in another case.
  2. The camelCase version appears instantly.
  3. Copy it straight into your code.

It accepts spaces, hyphens and underscores as word separators, so it also converts snake_case or kebab-case identifiers.

What is camelCase?

In camelCase the first word is lowercase and every following word starts with a capital, like firstName or totalItemCount. It removes spaces while keeping word boundaries readable. It is the default convention for variables and functions in JavaScript, Java, C# and Swift, and for keys in most JSON APIs.

Examples

InputcamelCase
user first nameuserFirstName
total_item_counttotalItemCount
Background ColorbackgroundColor

Frequently asked questions

How is camelCase different from PascalCase?

camelCase keeps the first word lowercase (firstName); PascalCase capitalises it too (FirstName). Use the PascalCase converter for the latter.

Does it convert snake_case and kebab-case too?

Yes. Underscores, hyphens and spaces are all treated as word boundaries, so you can paste an identifier in any of those styles.

Where is camelCase used?

For variables, function names and object properties in JavaScript, Java, C#, Swift and many others, and for keys in most JSON APIs.

Related tools