camelCase Converter
Convert text to camelCase for JavaScript and Java identifiers.
Tokens are split on whitespace, hyphens, underscores and existing case boundaries. The first token is lower-case; every subsequent token is capitalised.
0 characters
How to use camelCase Converter
What is camelCase?
camelCase is a naming convention where compound identifiers are
written as a single word with each new word (except the first)
capitalised and no separators between them — getUserName,
maxRetryCount, isLoggedIn. The name comes from the up-and-down
“humps” the capitals create in the middle of the word. The convention
predates modern programming — it appears in product names from the
1950s like CinemaScope — but it became the dominant style for
variables and function names in JavaScript, Java, C#, Swift,
Objective-C, Kotlin and TypeScript, and it’s the default for keys in
JSON payloads served by most public APIs.
When to use camelCase
camelCase has well-understood roles in software:
- Variable and function names in JavaScript, Java, C#, Swift and
Kotlin —
userName,calculateTotal(),isReady. Every major style guide for these languages (Airbnb, Google, Sun, Microsoft, Apple) specifies camelCase for local variables, parameters, instance fields and methods. - JSON keys and REST API responses — most public APIs (Stripe, Twitter, Slack) serialise object keys in camelCase, matching the language conventions of the JavaScript clients that consume them. GraphQL field names follow the same rule.
- Object property names — even in languages like Python or Ruby where snake_case is the norm, code that bridges to a JavaScript front end or a JSON API often keeps camelCase at the boundary.
- Renaming files and identifiers in bulk — pasting a list of human-readable phrases (“user profile page”, “shopping cart total”) and turning them into ready-to-use identifiers in one step.
- Generating CSS-in-JS keys — libraries like styled-components,
emotion and Tailwind’s plugin API use camelCased keys
(
backgroundColor,marginTop) that map to the kebab-case CSS properties at build time.
camelCase vs PascalCase: PascalCase (sometimes UpperCamelCase)
capitalises the first word too — UserProfile, HttpClient. It’s
the convention for classes, types, structs, enums, interfaces and
React component names in most languages. The rule of thumb across
the C-family languages: PascalCase for things you instantiate or
construct, camelCase for everything else.
Examples
A few before/after transforms the tool produces:
hello world→helloWorldget user profile→getUserProfilemax retry count→maxRetryCountis logged in→isLoggedInuser_first_name→userFirstNamemy-cool-component→myCoolComponentHTTP request handler→httpRequestHandler
Notice how spaces, hyphens and underscores are all treated as word
separators, and runs of capitals (like HTTP) are normalised so
only the first letter of each word is upper-case in the result.
How to use this camelCase Converter
- Type or paste your text into the input box. The camelCase result appears in the read-only output box and updates as you type — no Convert button to click.
- Tap Load sample if you’d like to see a typical multi-word phrase demonstrating the transform.
- Tap Copy beside the result to put it on your clipboard, ready to paste into your editor.
- Tap Clear to start over.
For other case styles — UPPERCASE, lowercase, Title Case, snake_case, kebab-case — visit the full Case Converter, or the dedicated landings for each style listed under Related Tools at the bottom of the page.
Privacy
The tool walks the text in a few short steps in JavaScript: split on separators, lower-case the first word, capitalise the first letter of the rest, join. It runs in your browser tab on your device’s CPU, with no network call, analytics, or storage. The text you paste never travels anywhere. You can verify in the browser’s Network tab; the page makes one set of requests when it loads and then nothing.
Compatibility notes
The transform relies on basic string operations and the built-in
toUpperCase() / toLowerCase() methods, which have been
JavaScript built-ins since the language’s inception. Every browser,
every OS, every version handles them the same way — there is
nothing to polyfill, no library to load. The Unicode coverage
matches the JavaScript engine, which on every modern browser is up
to date with the current Unicode release.
Frequently asked questions
Does the converter handle non-English characters?
toUpperCase() and toLowerCase() mappings — so café au lait becomes caféAuLait and accented letters round-trip cleanly. Programming languages and identifier rules differ, though: JavaScript and Java accept Unicode in identifiers, but most linters and house styles still expect ASCII. If you're generating real code, stick to ASCII source words.What about PascalCase output — can this tool produce that?
HelloWorld) capitalises every word including the first; it's the convention for class names, types, constructors and React components in most languages. To convert camelCase to PascalCase, run the input through this tool, then upper-case the first character of the result. The full Case Converter has PascalCase as a separate output mode.Will my line breaks and paragraph spacing be preserved?
What does the converter do with numbers, punctuation and emoji?
version 2 release becomes version2Release — but most punctuation and all emoji are stripped, because they aren't legal in identifiers in any mainstream language. Hyphens, underscores, dots and slashes are treated as word separators (my-cool-thing, my_cool_thing and my.cool.thing all produce myCoolThing). Apostrophes inside words are dropped (it's working → itsWorking).Is my text uploaded anywhere?
Related tools
snake_case Converter
Convert text to snake_case for Python and database fields.
Case Converter
Convert text to UPPERCASE, lowercase, Title Case, and more.
Lowercase Converter
Convert text to lowercase — every alphabetic character lower-cased.
Title Case Converter
Convert text to Title Case for headings and titles.
Slug Generator
Generate clean, SEO-friendly URL slugs.
Find and Replace
Find and replace text, with optional regex support.