Camel Case Converter — Text to camelCase Online

Convert text to camelCase — the naming convention for JavaScript variables, functions, and JSON keys. Free, instant, client-side case converter.

🔒 100% Client-Side Processing

Your data is processed entirely in your browser and never transmitted to any server.

Example

Input

user profile data

Output

userProfileData

Spaces, hyphens and underscores are all treated as word boundaries, so user-profile-data and user_profile_data give the same result.

0 / 100M Limit

Common Use Cases

Converting API fields to JavaScript

Turn snake_case keys from a Python or Rails API into the camelCase names your TypeScript interfaces and JavaScript objects expect, without renaming each field by hand.

Naming variables from descriptions

Convert a phrase like "max retry count" straight into maxRetryCount when translating a requirements document or ticket description into actual code identifiers.

Refactoring inconsistent code

Normalize identifiers pasted from mixed-style codebases into the JavaScript standard before a cleanup commit, so a reviewer sees one convention instead of three.

Building TypeScript interfaces from a schema

Paste a column list straight out of a database schema and get field names that already match your interface style, ready to drop into a type definition.

Frequently Asked Questions

What is the difference between camelCase and PascalCase?
camelCase starts with a lowercase letter (myVariable); PascalCase capitalizes the first letter too (MyVariable). JavaScript and TypeScript use camelCase for variables, functions and object properties, and reserve PascalCase for classes, React components, interfaces and type aliases. Mixing them up will not break your code, but it will read as wrong to every reviewer. Editors and linters such as ESLint can enforce the distinction automatically across a whole repository.
How does this converter split my input into words?
It splits on spaces, hyphens, underscores and existing case boundaries, lowercases the first word, then capitalizes the first letter of every word after it. So "user profile data", "user-profile-data", "user_profile_data" and "User Profile Data" all converge on the same result: userProfileData. Digits stay attached to the word they follow, so "line 2 items" becomes line2Items.
Why does JavaScript use camelCase when Python uses snake_case?
JavaScript settled on camelCase for identifiers because its earliest browser APIs did, and the convention stuck through ES6 and TypeScript. Python chose snake_case and CSS chose kebab-case for their own historical reasons. The mechanical difference is only the separator, so if you need one of the others, the Snake Case Converter and Kebab Case Converter do the same job for those ecosystems.
Should JSON keys be camelCase?
There is no rule in the JSON specification, so it comes down to the consumer. If JavaScript reads the payload, camelCase keys let you destructure without renaming anything. If a Python or Ruby service owns the API, snake_case is more idiomatic there and the mapping happens at the client boundary. Pick one per API and never mix within a single payload.
Does this handle acronyms like ID or URL?
Acronyms are lowercased like any other word, so "user ID" becomes userId and "parse URL string" becomes parseUrlString. That matches the dominant JavaScript style — Google's and Airbnb's style guides both prefer userId over userID — because treating acronyms as ordinary words keeps the splitting rules reversible. If you need the other form, edit the single letter after converting.
Is my data private when I use this tool?
Yes. This tool runs entirely in your browser using client-side JavaScript — nothing you type is transmitted to, logged by, or stored on any server. You can safely process confidential text, tokens, or code.