camelCase Converter

Turn phrases into camelCase names. The first word is lowercase, every later word starts with a capital, and spaces are removed.

0 words · 0 characters

Example

Before
user first name
shipping-address-line
ORDER_TOTAL
After
userFirstName
shippingAddressLine
orderTotal

Where camelCase is used

camelCase is the usual style for variables and functions in JavaScript, Java, and Swift, and for keys in many JSON APIs.

One name per line

Each line is converted separately, so you can paste a whole list at once. Input that is already in snake_case, kebab-case, PascalCase, or CONSTANT_CASE is split into words correctly first.

Acronyms in camelCase

Acronyms are the one place teams disagree. Some write userID and parseHTML; others treat an acronym as a word and write userId and parseHtml. Google’s Java and JavaScript style guides recommend the second approach because it keeps word boundaries clear (compare XMLHTTPRequest with XmlHttpRequest). This converter treats each word the same way, so pick a rule and fix acronyms by hand if your team prefers capitals.

Language conventions

camelCase is standard for variables, functions, and methods in JavaScript, TypeScript, Java, Kotlin, Swift, and Dart, and for JSON keys in many web APIs. Python, Ruby, and Rust use snake_case for the same things, and class names are PascalCase almost everywhere. Our guide to naming conventions lists them by language.

Frequently asked questions

What is the difference between camelCase and PascalCase?

camelCase starts with a lowercase letter (orderTotal); PascalCase starts with a capital (OrderTotal).

What happens to numbers?

Digits are kept and treated as part of the word they follow, so “address line 2” becomes addressLine2.

Can I convert snake_case to camelCase?

Yes. Paste user_first_name and you get userFirstName. kebab-case and CONSTANT_CASE are recognized too.