camelCase Converter: Turn Text Into camelCase Paste a phrase, a column name or an existing identifier and get clean camelCase back — in the browser, in one click.
A camelcase converter turns a human phrase into the identifier style JavaScript, Java and Swift expect. user profile photo becomes userProfilePhoto, and an input that is already user_profile_photo or user-profile-photo is understood rather than mangled.
How do you convert text or a string to camelCase?
ToolGuest camelCase Converter is a free, zero-ad, 100% client-side tool that rewrites a phrase or an existing identifier into camelCase in one click, in under 50 ms. It splits spaces, hyphens, underscores and capitals into words, then rejoins them with a lowercase first word and never uploads your code.
How to convert a string to camelCase in three steps
The converter understands input that is already an identifier, so you do not have to clean it up first.
- STEP 01
Paste the phrase or identifier
A sentence, a database column such as user_profile_photo, a kebab-case CSS class or a run of capitals. Mixed input is fine: the engine splits it into words before rebuilding it.
- STEP 02
Click camelCase
The first word stays lowercase and every following word is capitalised, with the separators removed. PascalCase sits next to it when you need an upper-camel identifier for a class or a type instead.
- STEP 03
Copy the identifier
Copy to clipboard or download the result. For a whole table of columns, switch on Convert line-by-line first so each field name is converted on its own line.
Where camelCase is the convention
camelCase is the default identifier style of the JavaScript, Java and Swift ecosystems. Following the ecosystem convention makes code review faster and keeps generated code consistent.
JavaScript and TypeScript
Variables, functions, object properties and React props are camelCase by convention, including the built-in DOM APIs such as getElementById.
Java and Swift
Methods and local variables are lower camel case, while classes and types are PascalCase, which is why both buttons sit next to each other.
JSON payloads
Many public APIs return camelCase keys, so converting a database column before it becomes a JSON field keeps the payload consistent with the client.
Every case format, with an exact example
These are the exact strings the engine returns for one sentence. Copy the row that matches the casing you need, or paste your own text and pick the same format above.
| Case style | Example output | Primary use case |
|---|---|---|
| Sentence case | Convert text and code in your browser. | Body copy, emails and descriptions — the default for prose. |
| Title Case | Convert Text and Code in Your Browser. | Headlines, H1s and article titles that follow editorial style. |
| UPPERCASE | CONVERT TEXT AND CODE IN YOUR BROWSER. | Labels, warnings, acronyms and emphasis in captions. |
| lowercase | convert text and code in your browser. | Tags, email addresses and text that must be normalised. |
| Capitalized Case | Convert Text And Code In Your Browser. | Buttons, short labels and poster text with every word capitalised. |
| aLtErNaTiNg cAsE | cOnVeRt TeXt AnD cOdE iN yOuR bRoWsEr. | Meme and social captions — the mocking SpongeBob style. |
| InVeRsE cAsE | cONVERT TEXT AND CODE IN YOUR BROWSER. | Flipping existing capitalisation without retyping. |
| camelCase | convertTextAndCodeInYourBrowser | JavaScript and Java variables, functions and object keys. |
| PascalCase | ConvertTextAndCodeInYourBrowser | Class, component and type names in C#, Java and TypeScript. |
| snake_case | convert_text_and_code_in_your_browser | Python variables, SQL columns and JSON keys in APIs. |
| kebab-case | convert-text-and-code-in-your-browser | URL slugs, CSS class names and file names. |
| CONSTANT_CASE | CONVERT_TEXT_AND_CODE_IN_YOUR_BROWSER | Constants, environment variables and config keys. |
| dot.case | convert.text.and.code.in.your.browser | Property paths, package names and settings keys. |
- <50 ms execution — a single pass over the text, in the browser tab.
- 100% client-side — no upload, no server round-trip, no logging.
- 0 ads, 0 signups — nothing between you and the converted text.
- Works offline after the page loads, because no conversion step calls the network.
Before and after: real conversions
Each row is a conversion this engine performs. The left column is the input, the right column is exactly what you get when you click the matching case button above.
| Use | Input | Output |
|---|---|---|
| Phrase | user profile photo | userProfilePhoto |
| snake_case input | user_profile_photo | userProfilePhoto |
| kebab-case input | user-profile-photo | userProfilePhoto |
| Acronym run | HTTP response code | httpResponseCode |
What people get wrong, and how to avoid it
Three mistakes account for almost every casing problem. Recognising them saves a round of editing later.
Capitalising the first letter by accident
If the identifier starts with a capital it is PascalCase, not camelCase. That is correct for a class name and wrong for a variable in most JavaScript style guides, so check the first character before you paste it back.
Losing acronym casing
A run of capitals such as HTTP is split into a word and lowercased, giving httpResponseCode rather than hTTPResponseCode. That matches the common convention, but an existing codebase that keeps acronyms uppercase needs a manual review.
Converting a list without batch mode
With batch mode off, a pasted list of column names is treated as one string and fuses into a single identifier. Turn line-by-line on whenever the input has more than one line.
camelCase in practice, in depth
camelCase versus PascalCase, and when each applies
The two camel styles differ only in the first letter, but that letter carries meaning. In Java and C#, types and classes are PascalCase and members are camelCase; in JavaScript the same split applies to React components and their props. When you convert a phrase, decide first whether it names a thing or an action, because that decides the case.
Turning database columns into camelCase fields
A typical API pipeline starts with snake_case columns and ends with camelCase JSON. Converting the whole column list in one batch, with line-by-line mode, keeps the field order identical, so the model file and the migration stay in step and no field is silently dropped in the mapping.
ToolGuest camelCase converter vs developer case tools
A developer case tool converts one identifier at a time. This page converts a list, keeps your input in the browser, and gives you the neighbouring formats for free.
| Capability | ToolGuest | ConvertCase | Developer case tools |
|---|---|---|---|
| Editorial and developer identifier cases in one tool | Yes — 13 formats | Editorial cases only | Developer identifiers only |
| Line-by-line batch mode for lists and columns | Yes, toggle in the tool | No | Rarely, and only for identifiers |
| Ads & popups | 0, ever | Display ads, or a paid ad-free plan | Varies by tool |
| Privacy & execution | 100% client-side in your browser | Server-side with trackers | Often a server round-trip |
| Speed | <50 ms, instant local | Page reloads and clutter | Page reloads |
| Offline capability | Works offline after load | Needs a connection | Needs a connection |
| Signup, cookies or account | None | Consent walls and trackers | Some require an account |
camelCase converter questions, answered
What is camelCase and where is it used?
camelCase joins words without separators, keeps the first word lowercase and capitalises each later word, as in userProfilePhoto. It is the standard for variables, functions and object properties in JavaScript, TypeScript, Java and Swift, and for the JSON keys many APIs return.
How do I convert a phrase to camelCase?
Paste the phrase and click camelCase. The engine splits the words on spaces, hyphens, underscores, slashes and dots, lowercases the first word and capitalises the rest. “user profile photo” becomes userProfilePhoto in a single pass, in the browser.
Does camelCase start with a capital letter?
No. Lower camel case starts lowercase, which is why it is used for variables and functions. Upper camel case, where the first letter is also capitalised, is PascalCase, and it is the convention for classes, types and components. Both are one click away on this page.
How is camelCase different from snake_case?
camelCase removes the separators and signals a word boundary with a capital letter, while snake_case keeps lowercase words joined by underscores. camelCase belongs in JavaScript and Java, snake_case in Python, SQL columns and most JSON APIs. The same words convert between them in one click.
Can I convert a list of column names to camelCase at once?
Yes. Turn on Convert line-by-line, paste one column name per line, then click camelCase. Each line is converted separately, blank lines are preserved, and the output stays aligned with the input so it can be pasted straight back into a migration or a model file.
All Case Converter & Text Formatting Tools
Every page below runs the same 13-format engine in your browser, so a conversion behaves identically wherever you land. Pick the page that matches your writing or developer task.