ToolJutsu
All tools
Text Tools

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.

camelCase

0 characters

Processed on your device. We never see your files.

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 KotlinuserName, 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 worldhelloWorld
  • get user profilegetUserProfile
  • max retry countmaxRetryCount
  • is logged inisLoggedIn
  • user_first_nameuserFirstName
  • my-cool-componentmyCoolComponent
  • HTTP request handlerhttpRequestHandler

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

  1. 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.
  2. Tap Load sample if you’d like to see a typical multi-word phrase demonstrating the transform.
  3. Tap Copy beside the result to put it on your clipboard, ready to paste into your editor.
  4. 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?
Yes, with a caveat. The transform splits on whitespace and common separators, lower-cases the first word, and capitalises the first letter of every subsequent word using JavaScript's Unicode-aware 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?
Not directly — this converter emits camelCase, which lower-cases the first word. PascalCase (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?
No — and that's deliberate. camelCase identifiers can't contain whitespace, so the transform collapses every run of spaces, newlines, tabs, hyphens and underscores into a word boundary and emits a single continuous string. If you need a multi-line list of camelCased identifiers, run each line through separately, or paste them one per line into the input.
What does the converter do with numbers, punctuation and emoji?
Digits are preserved in place — 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 workingitsWorking).
Is my text uploaded anywhere?
No. The transform runs entirely in your browser tab as JavaScript on your device's CPU. There is no network call, no logging, and no analytics on the text you paste. The page works the same way offline after the initial load — confirm in the browser's Network tab.

Related tools