camelCase Converter: Convert a String to camelCase Turn any text, snake_case or kebab-case into camelCase — and PascalCase in the same click.
A camel case converter that turns a phrase, a sentence, a filename or an existing identifier into camelCase in one click. It splits snake_case, kebab-case, dot.case and PascalCase into words first, then re-joins them the JavaScript way. Click PascalCase on the same block to get PascalCase. Free, client-side, and under 50 ms.
How do you convert a string to camelCase?
To convert a string to camelCase, paste it above and click camelCase. The converter splits the text into words on spaces, underscores, hyphens and existing capital letters, lowercases the first word and capitalises the first letter of every following word. The result is a valid JavaScript identifier such as convertTextToCamelCase.
How to convert text to camelCase in 3 seconds
From a plain phrase or a snake_case string to a valid camelCase identifier.
- STEP 01
Paste your string or phrase
Drop in a sentence, a snake_case name, a kebab-case slug or an existing identifier. The converter reads the words it contains.
- STEP 02
Click camelCase
The words are lowercased and re-joined with a capital at the start of each word after the first, giving camelCase instantly. Click PascalCase for upper camel case.
- STEP 03
Copy the identifier
One click copies the camelCase result, ready to paste into your JavaScript, JSON or TypeScript file.
When to use camelCase in your code
camelCase is the default naming convention in JavaScript, TypeScript and JSON, and in most Java and Swift code. Converting a block of names to match keeps a file consistent and searchable.
JavaScript variables
camelCase is the standard for variables and function names in JavaScript and TypeScript.
JSON keys
Most JSON APIs use camelCase keys, so converting a list of field names keeps a payload consistent.
Handles any input
The converter splits snake_case, kebab-case, dot.case and PascalCase before re-joining, so any identifier becomes camelCase.
Pairs with PascalCase
One click on PascalCase gives upper camel case for classes, types and React components.
No retyping
Converting a whole block at once beats retyping identifiers by hand and avoids typos.
Nothing uploaded
The conversion runs in your browser, so your code never leaves the device.
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.
| Format | Example output |
|---|---|
| Sentence case | Convert text and code in your browser. |
| Title Case | Convert Text and Code in Your Browser. |
| UPPERCASE | CONVERT TEXT AND CODE IN YOUR BROWSER. |
| lowercase | convert text and code in your browser. |
| camelCase | convertTextAndCodeInYourBrowser |
| PascalCase | ConvertTextAndCodeInYourBrowser |
| snake_case | convert_text_and_code_in_your_browser |
| kebab-case | convert-text-and-code-in-your-browser |
| CONSTANT_CASE | CONVERT_TEXT_AND_CODE_IN_YOUR_BROWSER |
- <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 |
|---|---|---|
| Plain phrase | user account id | userAccountId |
| snake_case | get_user_account_name | getUserAccountName |
| kebab-case | max-retry-count | maxRetryCount |
| Existing capitals | HTTPResponseCode | 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.
Leaving the first letter capital
A name such as UserAccountId is PascalCase, not camelCase. The camelCase convention requires a lowercase first letter, which is what distinguishes it from a class name.
Running words together without capitals
useraccountid is not camelCase; it is an unreadable single word. The convention needs a capital at the start of each word after the first.
Using camelCase for a CSS class
HTML attribute values are case-insensitive in practice, so a camelCase class name can be silently lowercased. Use kebab-case for CSS and HTML.
How camelCase conversion works
How the converter splits words
Before joining, the converter breaks the input on spaces, underscores, hyphens and dots, and also splits existing camelCase and runs of capitals. That is why HTTPResponseCode becomes httpResponseCode rather than a mangled string.
camelCase versus PascalCase
The only difference is the first letter. camelCase starts lowercase and names variables and functions; PascalCase starts uppercase and names classes, types and React components. Both are one click apart on this page.
Where camelCase is standard
camelCase is the default in JavaScript, TypeScript, JSON and most Java and Swift code. Matching the surrounding file matters more than any single style guide, so convert a whole block rather than one name at a time.
What happens to acronyms and numbers
The converter lowercases an acronym that lands inside an identifier, so HTTPServer becomes httpServer and getUserID becomes getUserId. That matches the JavaScript and Java convention of treating an initialism as an ordinary word rather than shouting it. Digits start a new word: user account id v2 becomes userAccountIdV2. If your codebase keeps acronyms intact, edit the result by hand after converting, because a generic camel case converter has no way to know which capital runs are deliberate.
ToolGuest vs. legacy camel case converters
Most case converters stop at text. The table shows which tools actually understand identifiers.
| Capability | ToolGuest | Legacy converters |
|---|---|---|
| Supported casing formats | 13 — writing and developer cases | Basic text case only |
| Developer identifiers (camelCase, PascalCase, snake_case, kebab-case) | Built in | Not supported |
| Ads & popups | 0, ever | Heavy display ads |
| Execution speed | <50 ms, instant local | Page reloads and clutter |
| Privacy & data uploads | 100% client-side, nothing uploaded | Ad trackers and uploads |
| Offline capability | Works offline after load | Needs a connection |
| Signup, cookies or account | None | Consent walls and trackers |
camelCase questions, answered
How do I convert a string to camelCase?
Paste the string and click camelCase. The converter splits it into words, lowercases the first word and capitalises each following word, giving a valid camelCase identifier.
What is the difference between camelCase and PascalCase?
camelCase starts with a lowercase letter, as in myVariableName. PascalCase, also called upper camel case, starts with a capital, as in MyClassName, and is used for classes, types and components.
Does the converter handle snake_case and kebab-case input?
Yes. It splits on underscores, hyphens, dots and spaces, and also splits existing camelCase and runs of capitals, so any identifier becomes clean camelCase.
What happens to numbers in the string?
Numbers are kept and treated as part of a word, so a phrase such as user id 2 becomes userId2. Nothing is dropped.
Is my code uploaded when I convert it?
No. The conversion is plain string manipulation in your browser tab, so your code is never transmitted, stored or logged.
Is this camel case converter free?
Yes. It is completely free, needs no account, and carries no ads or tracking.
Specialized Text & Code Case Converters
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.