Global · Tier-1 optimized
Free camel case converter for developers FREE

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.

Your text never leaves the browser Works offline after load No ads, no signup, no uploads
camelCase Converter — live, in your browser
0 Characters
0 Words
0 Sentences
0 Lines
0 min Read time
Instant answer

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

How to convert text to camelCase in 3 seconds

From a plain phrase or a snake_case string to a valid camelCase identifier.

  1. 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.

  2. 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.

  3. STEP 03

    Copy the identifier

    One click copies the camelCase result, ready to paste into your JavaScript, JSON or TypeScript file.

Why it matters

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.

Format & benchmark reference

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.

FormatExample output
Sentence caseConvert text and code in your browser.
Title CaseConvert Text and Code in Your Browser.
UPPERCASECONVERT TEXT AND CODE IN YOUR BROWSER.
lowercaseconvert text and code in your browser.
camelCaseconvertTextAndCodeInYourBrowser
PascalCaseConvertTextAndCodeInYourBrowser
snake_caseconvert_text_and_code_in_your_browser
kebab-caseconvert-text-and-code-in-your-browser
CONSTANT_CASECONVERT_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.
Worked examples

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.

UseInput Output
Plain phraseuser account iduserAccountId
snake_caseget_user_account_namegetUserAccountName
kebab-casemax-retry-countmaxRetryCount
Existing capitalsHTTPResponseCodehttpResponseCode
Common mistakes

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.

In depth

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.

Head to head

ToolGuest vs. legacy camel case converters

Most case converters stop at text. The table shows which tools actually understand identifiers.

CapabilityToolGuest Legacy converters
Supported casing formats13 — writing and developer casesBasic text case only
Developer identifiers (camelCase, PascalCase, snake_case, kebab-case)Built inNot supported
Ads & popups0, everHeavy display ads
Execution speed<50 ms, instant localPage reloads and clutter
Privacy & data uploads100% client-side, nothing uploadedAd trackers and uploads
Offline capabilityWorks offline after loadNeeds a connection
Signup, cookies or accountNoneConsent walls and trackers
FAQ

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.