camelCase Converter

Character Count: 0 Word Count: 0 Line Count: 0
Cc

Convert Text to camelCase for JavaScript, Java, and More

camelCase is a naming convention where compound words are written without spaces, with each word after the first starting with a capital letter, for example, getUserName or totalItemCount. It is the standard convention for variable and function names in JavaScript, TypeScript, Java, and Kotlin. The name comes from the uppercase letters in the middle of the word, which resemble the humps of a camel.

This converter automatically detects word boundaries in any input format. Paste plain English, snake_case, kebab-case, or PascalCase text and get clean camelCase output. Each line is converted independently, so you can transform a batch of variable names at once.

What is the difference between camelCase and PascalCase?

camelCase starts with a lowercase letter (helloWorld). PascalCase starts with an uppercase letter (HelloWorld). Both use capital letters to mark the start of each subsequent word, but they serve different roles in most style guides. camelCase is typically used for variables, function names, and object properties, while PascalCase is reserved for class names, type definitions, and React components. PascalCase is sometimes called UpperCamelCase.

Which programming languages use camelCase?

JavaScript and TypeScript use camelCase for variable names, function names, and object properties. Java uses it for methods and local variables. Kotlin, Swift, and Dart follow the same convention. It is also the standard for JSON property names in most APIs. In C#, camelCase is used for private fields and local variables while PascalCase is used for public members.

Can this convert snake_case to camelCase?

Yes. Paste hello_world and the converter will output helloWorld. It also accepts kebab-case (hello-world), PascalCase (HelloWorld), and SCREAMING_SNAKE_CASE (HELLO_WORLD) as input. The tool splits on underscores, hyphens, spaces, and camelCase word boundaries, so mixed formats like Hello World_foo-bar also convert correctly to helloWorldFooBar.

What is lower camelCase?

Lower camelCase (also called dromedary case) is the standard form where the first word is lowercase and subsequent words are capitalized (myVariable, getUserName). Upper camelCase is the same as PascalCase, where all words including the first are capitalized (MyVariable, GetUserName). When developers say "camelCase" without a qualifier, they almost always mean lower camelCase.

How are numbers and acronyms handled?

The converter splits at digit-letter boundaries, so myVar2Name is recognized as three words and converts back to myVar2Name unchanged. Acronyms like XMLParser are split at the boundary where the uppercase run meets a new word, producing xmlParser. Multi-line input is supported: each line is converted independently, preserving line breaks in the output.