camelCase Converter

Convert text to camelCase instantly for JavaScript and Java variable names — free online.

Convert to

About

About the camelCase Converter

Joins words with no separator and capitalizes every word except the first — "user first name" becomes "userFirstName". It's the standard naming convention for variables and functions in JavaScript and Java, and shows up constantly in JSON API responses written in those ecosystems.

Any character that isn't a letter or a digit — spaces, hyphens, underscores, dots, slashes — is treated as a word break, so "user-id", "user_id" and "User ID" all become "userId". Text that's already camelCase isn't split back into words, though: "userId" counts as one word and comes out as "userid", so start from words separated by spaces or symbols.

Choose what to view about this tool

Guide

Using the camelCase Converter

  1. 1

    Step 1

    Type or paste your text into the input box.

  2. 2

    Step 2

    Click camelCase, or it converts live as you type since this page presets that case.

  3. 3

    Step 3

    Copy the result, or try one of the other case buttons below the input.

  • Builds camelCase as you type from words separated by spaces, hyphens, underscores or dots
  • Keeps digits in place, so "address line 2" becomes "addressLine2"
  • Supports accented Latin letters, like "café menu" → "caféMenu"
  • Ten other cases are one click away on the same text
  • Copy the result in one click, or Clear to start over
  • Runs entirely in your browser — free, with no sign-up and no limit

JavaScript and TypeScript developers

Developers name variables and functions the way JS style guides expect.

API developers

API developers turn snake_case database columns like user_name into JSON keys like userName.

Java and Kotlin developers

Developers convert labels into field and method names.

Form builders

Anyone building a form turns field labels into input names.

Convert to another case

Examples

camelCase Converter examples

3 worked examples

01

A variable name

"user first name" converts to "userFirstName", ready to use as a JavaScript variable.

02

An API field

"total order count" converts to "totalOrderCount".

03

Accented and non-Latin text

"größe der datei" converts to größeDerDatei — accented Latin letters are kept, but words in scripts like Bengali or Chinese are dropped, since only Latin letters and digits count as word characters.

FAQ

Frequently asked questions

Quick answers to common questions about the camelCase Converter.

How do I convert text to camelCase?

Type or paste your text above and click camelCase (or just start typing — this page previews camelCase live). Copy the result when you're done.

Is this camelCase converter free?

Yes. It's free, with no sign-up and no limit on how much text you convert.

Where is camelCase used?

camelCase joins words with no separator and capitalizes every word except the first, the standard naming convention for variables and functions in JavaScript and Java.

What's the difference between camelCase and PascalCase?

camelCase leaves the first word lowercase (userFirstName), while PascalCase capitalizes every word including the first (UserFirstName) — camelCase is typically used for variables and functions, PascalCase for classes and components.

Can I convert to a different case?

Yes — the same tool handles UPPERCASE, lowercase, Title Case, Sentence case, PascalCase, snake_case and kebab-case. Click any of the buttons below the input, or use one of the dedicated pages below.

What happens to punctuation, spaces and emoji?

Anything that isn't a letter or a digit is treated as a word break and removed, so "user's first-name!" becomes userSFirstName. Emoji and symbols disappear, while accented Latin letters are kept.

Does it split text that's already joined, like myVariable?

No. It splits only on spaces and punctuation, not on capital letters, so "myVariable" stays one word and becomes myvariable, and "XML parser" becomes xmlParser. Put a space between the words first if your input is already joined up.

Can a camelCase name start with a number?

The tool keeps digits, so "2nd place" becomes 2ndPlace — but JavaScript, Java, C# and most other languages don't allow a variable name to start with a digit. Put a word in front, like secondPlace, before using it in code.

What happens to text on several lines?

All lines are joined into one identifier, because a variable name can't contain line breaks. Convert one name at a time to get one result per name.

Still have a question? Contact us

Report a problem

camelCase Converter

What went wrong?
    or paste a screenshot