A variable name
"user first name" converts to "userFirstName", ready to use as a JavaScript variable.
Convert text to camelCase instantly for JavaScript and Java variable names — free online.
About
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.
Examples
3 worked examples
"user first name" converts to "userFirstName", ready to use as a JavaScript variable.
"total order count" converts to "totalOrderCount".
"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
Quick answers to common questions about the camelCase Converter.
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.
Yes. It's free, with no sign-up and no limit on how much text you convert.
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.
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.
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.
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.
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.
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.
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.
Did camelCase Converter work for you?