camelCase Converter
Convert any phrase into camelCase — first word lowercase, every subsequent word capitalized, no spaces.
user profile background color → userProfileBackgroundColor
Convert any phrase into camelCase — first word lowercase, every subsequent word capitalized, no spaces.
user profile background color → userProfileBackgroundColor
camelCase is a naming convention used in programming where the first word is lowercase and every subsequent word starts with an uppercase letter, with no separators. The name comes from the visual hump-like rise of the capital letters — a row of camels on a string.
It's the default identifier convention in JavaScript, Java, C#, Swift, Kotlin, and TypeScript. JSON keys are conventionally camelCase. AWS API responses use camelCase. Most modern HTML data attributes (read via JavaScript's dataset property) are converted automatically between kebab-case (in HTML) and camelCase (in JavaScript).
userId, firstName, computeTaxRate — every JS/TS variable, function, and method name is conventionally camelCase.
Most modern APIs (REST, GraphQL) use camelCase keys in JSON payloads. Strapi, Stripe, AWS, and most SaaS APIs return JSON with camelCase keys.
Java standard library and most Java code uses camelCase for method names: setBackgroundColor, getElementById, readFromFile. Class names are PascalCase (different convention).
ORMs typically convert between database columns (often snake_case) and language-side object properties (camelCase) automatically.
JavaScript's CSSStyleDeclaration uses camelCase for properties — backgroundColor instead of background-color. CSS-in-JS libraries (styled-components, Emotion) follow the same convention.
The tool splits the input string on any non-alphanumeric separator (spaces, hyphens, underscores, tabs). Each segment is lowercased. The first segment remains lowercase. For every subsequent segment, its first character is uppercased (using toUpperCase()) and the rest lowercased. All segments are then concatenated without any separator. Acronyms are treated as regular words (e.g., "HTML parser" → "htmlParser"). Possessives lose their apostrophe (e.g., "user's name" → "usersName"). Hyphenated words are split and each part treated as separate word (e.g., "well-known" → "wellKnown").
While you can manually apply camelCase with regex or spreadsheet functions, this tool provides a one-click, accurate solution.
| This tool | sed command | Excel PROPER() | |
|---|---|---|---|
| Capitalization logic | Intelligent: first word lowercase, rest capitalized, ignores hyphens/underscores | Requires complex regex: sed -E 's/([a-z]+) ([a-z]+)/\1\u\2/g' | Only capitalizes first letter of each word, not camelCase-specific |
| Ease of use | One click, no command-line knowledge needed | Steep learning curve: regex syntax, escaping, multi-word handling | Simple but wrong output (all words capitalized like Proper Case) |
| Bulk / batch processing | Single string at a time, but fast | Excellent for bulk files via pipe (e.g., sed ... file.txt) | Requires cell-by-cell formula copy, not ideal for large data |
The camelCase convention emerged in the 1970s with the Smalltalk programming language, which used it for variable and method names. It gained widespread adoption in the 1990s with languages like Java and JavaScript, becoming a standard for identifier naming in C-like languages. The term “camelCase” was coined later, referencing the hump-like shape created by uppercase letters in the middle of a word.
camelCase starts with a lowercase letter (userName); PascalCase starts with uppercase (UserName). Many languages use camelCase for variables and PascalCase for class names. JavaScript convention: variables and functions are camelCase; classes and constructors are PascalCase.
Spaces, hyphens, underscores, and punctuation are all removed; the next letter after each separator is capitalised. "my-variable_name" and "my variable name" both convert to "myVariableName".
The converter lowercases everything first, then applies camelCase rules. Existing capitalization is normalised away.
Rarely. Python's PEP 8 style guide recommends snake_case for variable and function names; PascalCase for classes. Camel case appears in Python code mainly when interfacing with non-Python APIs that require it.
The capital letters create a visual hump pattern resembling a camel's back. The naming dates from the 1980s; the underlying convention predates that significantly.