Skip to content
PixelAndPDF

Camel Case Converter — Free Online

Turn a phrase, database column or file slug into camelCase — first word lower case, each following word capitalised, no spaces. Built for JavaScript variables, JSON keys and Java method naming when your source text arrived as snake_case, kebab-case or plain English. Conversion is instant and stays in your browser.

How to use the camel case converter

  1. Paste the source text — snake_case, kebab-case or a plain phrase — into the first box.
  2. CamelCase is selected by default; the converted string appears below as you type.
  3. Copy the result, or switch to snake_case or kebab-case for the other layers of your stack.

When camelCase is the right output

Camel case is the de facto standard for JavaScript and TypeScript variables, object keys in many front-end codebases, Java method names after the first word, and Swift properties. JSON APIs consumed by mobile and web clients often expect camelCase even when the database underneath uses snake_case — which is exactly the mismatch this converter fixes.

Typical jobs: rename user_profile_id from a SQL export to userProfileId for a React component; turn kebab-slug-from-cms into camelCase for a config object; normalise ALL CAPS constants from a legacy dump into readable camelCase before a refactor. Each is faster as a paste-and-copy than manual shift-key typing across fifty fields.

PascalCase — leading capital — is not the default here. If you need PascalCase for a React component or C# class name, capitalise the first letter of the camelCase output once, or use title case as a starting point and remove spaces manually for short names.

Reading snake_case and kebab-case input

Underscores and hyphens are treated as word separators, so user_profile_id and user-profile-id both become userProfileId. Spaces and line breaks split words the same way. Acronyms pasted as fully upper case (HTTP, API) usually stay one token; the converter lowercases the first word and capitalises the rest, which may yield httpApi — adjust acronyms by hand when your style guide demands HTTPApi or httpAPI.

Digits attach to the neighbouring word: version_2_release becomes version2Release. Empty lines are ignored. Very long pasted lists — enum values from a proto file, CSV headers — convert in one pass with no server round trip, which matters when the list is proprietary.

If the source mixed camelCase and snake_case in one string, the splitter still finds boundaries at capitals and underscores. Skim the output for edge cases like iPhone or eBay where automatic rules guess wrong.

camelCase in APIs, configs and codegen

OpenAPI and GraphQL tooling often generates camelCase client stubs from snake_case server schemas. Paste the server field list, copy camelCase output into hand-written mappers, and keep the generated types aligned without a paid rename plugin.

Environment variable conventions differ: Unix env vars are traditionally SCREAMING_SNAKE, while nested config objects in Node use camelCase. This page is for the object keys, not for process.env names — use snake or upper for those.

When the same string must exist in three conventions, start from the most readable source (usually plain English or snake_case from the database), copy camelCase for the UI layer, snake_case for migrations and kebab-case for routes — all from the buttons on this page without opening three tabs.

Frequently asked questions

How do I convert text to camel case online free?

Paste your phrase or snake_case string into the box. CamelCase appears instantly — free, no signup, nothing uploaded.

What is the difference between camelCase and PascalCase?

camelCase starts lower case (userId). PascalCase starts upper case (UserId) for classes and components. This tool outputs camelCase by default.

Can I convert snake_case to camelCase?

Yes — underscores split words and the first word is lowercased while the rest are capitalised: user_profile → userProfile.

Does camel case work for JavaScript variable names?

Yes. The output is valid for const, let and object keys in modern JavaScript and TypeScript.

Camel case vs kebab-case for URLs?

URLs use kebab-case (user-profile). JavaScript identifiers use camelCase (userProfile). Use the kebab button when you need the URL form.

Is the camel case converter private?

Yes. Text never leaves your browser — suitable for unreleased API field names.

Can I convert a list of database columns to camelCase?

Paste one column name per line or a comma-separated list; copy the batch result into your ORM or DTO definitions.

How are acronyms handled in camelCase?

Fully capitalised tokens may become one word with only the first letter downcased. Check API, HTTP and ID fields before you commit.

Can I switch to snake_case after converting?

Yes — tap snake_case on the same page to get the database-style version without retyping the source.

Is this camelCase generator free and unlimited?

Yes — no watermark, account wall or daily cap.

Related tools

Runs entirely in your browser — your files and text never leave this device. Last reviewed August 24, 2026.