Developer utility
camelCase converter
Paste any text below to convert it to camelCase — the default variable and function name style in JavaScript, Java, TypeScript, Swift, and Kotlin. Handles snake_case, kebab-case, spaces, and mixed input.
How camelCase works
camelCase joins multiple words into a single identifier by lowercasing the first word and capitalizing the first letter of every word that follows. There are no separators — no spaces, no underscores, no hyphens. Examples: firstName, getUserId, isLoggedIn, parseJsonPayload.
The name comes from the “humps” the capital letters create inside the word. If the first letter is also capitalized the convention is called PascalCase (FirstName), and the two are almost always used together in the same codebase: camelCase for variables and functions, PascalCase for classes and types.
This tool normalizes the input first — it splits on spaces, underscores, hyphens, dots, slashes, and case transitions — then rejoins with the correct capitalization. That means you can paste first_name, first-name, first.name, First Name, or FirstName and get the same result: firstName.
When to use camelCase
Use camelCase whenever your language or style guide calls for it for identifiers that are not class names:
- JavaScript / TypeScript — variables, functions, method names, object keys in most style guides.
- Java — local variables, instance fields, method names (not classes or constants).
- Swift / Kotlin — variables, functions, property names.
- Go — unexported identifiers (camelCase) vs. exported (PascalCase).
- C# — parameters and local variables; PascalCase is used for public members.
- JSON APIs — most JavaScript-origin APIs use camelCase for field names (Stripe, GitHub, etc.). Many REST APIs from other language ecosystems use snake_case instead.
Need the snake_case or kebab-case version instead? The snake_case converter and kebab-case converter use the same input parsing. For a full breakdown of how the conventions map across languages, see camelCase vs snake_case.
Frequently asked questions
What is camelCase?
A naming convention where the first word is lowercase and every subsequent word is capitalized with no separator. Examples: firstName, getUserId, isLoggedIn. It is the default identifier convention in JavaScript, Java, TypeScript, Swift, and Kotlin.
What is the difference between camelCase and PascalCase?
camelCase starts lowercase (getUserName); PascalCase starts uppercase (GetUserName). By convention camelCase is used for variables and functions; PascalCase for classes, types, and React components.
Which languages use camelCase as the standard?
JavaScript, TypeScript, Java, Swift, and Kotlin use camelCase as the default for variables and functions. Go uses camelCase for unexported names. C# uses camelCase for parameters and locals.
Does this tool send my text to a server?
No. Conversion happens entirely in your browser. Nothing you paste leaves your device.