camelCase Converter Online
camelCase removes spaces between words, keeps the first word all lowercase, and capitalizes the first letter of every word after it. It is the standard naming convention for variables and functions in JavaScript, Java, Swift, and most modern programming languages. Paste your text above to convert instantly. Nothing is uploaded.
Related case converters
How the camelCase converter works
Paste your text into the input panel and it converts to camelCase automatically. The tool removes spaces, lowercases the first word entirely, and capitalizes the first letter of every subsequent word. Turn off auto-run and hit convert manually if you prefer to control when the conversion runs.
What camelCase is
camelCase is a naming convention where multiple words are joined without spaces, with each word after the first starting with an uppercase letter. The name comes from the visual resemblance to a camel’s humps. “user account balance” becomes “userAccountBalance”. “get product by id” becomes “getProductById”.
The first letter of the entire result is always lowercase. This is what separates camelCase from PascalCase, which capitalizes every word including the first. “firstName” is camelCase. “FirstName” is PascalCase. Both remove spaces and capitalize word boundaries but they differ on that first character.
camelCase vs PascalCase
In most languages that use both, the convention is consistent: camelCase for variables, function names, and method names, PascalCase for class names and component names. In JavaScript, you write “getUserData()” as a function but “UserProfile” as a class. In Java, “calculateTotalPrice()” is a method but “ShoppingCart” is a class. If you need PascalCase output, the PascalCase converter handles that directly without any manual editing.
Where camelCase is used
JavaScript and TypeScript use camelCase for variables, function names, object properties, and method names. It is the default convention enforced by most linting tools including ESLint. React component props use camelCase too, which is why HTML’s “onclick” becomes “onClick” in JSX and “class” becomes “className”.
Java uses camelCase for variables, method names, and parameters. Class names and interface names use PascalCase. This split convention is consistent enough in the Java ecosystem that most IDEs flag violations automatically.
JSON APIs commonly use camelCase for field names in their response payloads. When building a REST API that serves a JavaScript frontend, camelCase field names feel natural on both ends. Converting a list of database column names in snake_case to camelCase for an API response is a common task during integration work. The snake_case converter handles the reverse direction if you need to go from camelCase back to snake_case for database work.
Swift uses camelCase for variables, constants, functions, and method names. Objective-C uses it too, which is how the convention became standard across Apple’s entire development ecosystem.
CSS-in-JS libraries like styled-components and Emotion use camelCase for style properties since they sit inside JavaScript. The CSS property “background-color” becomes “backgroundColor” and “font-size” becomes “fontSize” in inline React styles and CSS object notation.
Converting from other formats
The tool accepts plain text with spaces as input. Paste “get user profile data” and get “getUserProfileData”. It also handles snake_case input, so “get_user_profile_data” converts to “getUserProfileData” correctly by treating underscores as word boundaries. kebab-case input like “get-user-profile-data” converts the same way, treating hyphens as separators. For all case format conversions from a single input, the case converters hub runs every format at once.