Home / Tools / Coding Tools / Camel Case Converter

Coding Tools

Camel Case Converter

Paste a variable name, a sentence, or a whole list of names and instantly convert it to camelCase — plus PascalCase, snake_case, kebab-case, CONSTANT_CASE, and dot.case, all at once.

100% Private No Signup Updates As You Type Nothing Uploaded
Your text or variable names
0 lines
Treat each line as a separate name (turn off to convert the whole block as one phrase)

Features

🐫

Six naming conventions at once

Get camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE, and dot.case results side by side from a single input.

📋

List mode for bulk conversion

Paste a whole list of variable or column names, one per line, and convert every one of them at once instead of doing it name by name.

🔍

Smart word detection

Recognizes existing camelCase, PascalCase, snake_case, kebab-case, and spaced text as input, and splits it back into words correctly before converting.

Instant, live conversion

Every format updates the moment you type or paste — no button to click, no page reload.

📄

One-click copy per format

Copy just the camelCase result, or any other format, straight to your clipboard without touching the rest.

🔢

Handles numbers and acronyms

Keeps digits attached sensibly and treats runs of capital letters (like "ID" or "URL") as their own word when splitting.

🧪

Example input to try

No text handy? Load a sample list of mixed-format names with one click to see every conversion in action.

🔒

100% private

Every conversion happens locally in your browser. Nothing you type is ever uploaded, logged, or sent to a server.

What is camelCase?

Camel case is a naming convention where words are joined together with no spaces or punctuation, and every word after the first starts with a capital letter — like firstName or totalOrderPrice. The capital letters create little "humps" in the middle of the word, which is where the name comes from. It's one of the most common conventions for variable and function names in languages like JavaScript, Java, and Swift.

This tool also converts to the other naming styles you'll run into across different languages and contexts: PascalCase (capitalizes the first word too, common for class names), snake_case (words joined with underscores, common in Python and database columns), kebab-case (words joined with hyphens, common in URLs and CSS), CONSTANT_CASE (all uppercase with underscores, common for constants), and dot.case (words joined with periods, used in some config keys and namespaces).

How to use the Camel Case Converter

  1. Paste your text into the box — a single phrase, an existing variable name, or a list of names (one per line).
  2. Leave "Treat each line as a separate name" on to convert a list in bulk, or turn it off to treat the whole block as one phrase.
  3. All six formats update instantly below: camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE, and dot.case.
  4. Click Copy on whichever format you need — only that result is copied to your clipboard.

Examples

InputcamelCasesnake_casekebab-case
background colorbackgroundColorbackground_colorbackground-color
Order_Total_PriceorderTotalPriceorder_total_priceorder-total-price
user-id-2userId2user_id_2user-id-2
APIResponseDataapiResponseDataapi_response_dataapi-response-data

Common ways people use this tool

JavaScript / Java / Swift variablesConvert a descriptive phrase straight into a properly-cased variable name.
Python & database columnsGet clean snake_case names for functions, variables, or SQL/database column names.
CSS classes & URL slugsGenerate kebab-case class names or URL-friendly slugs from a title or phrase.
Constants & environment variablesProduce CONSTANT_CASE names for config values, environment variables, or enum members.
Refactoring legacy codeConvert a batch of old snake_case or kebab-case names to camelCase (or vice versa) when standardizing a codebase.
API designKeep field names consistent across a JSON API, converting between camelCase and snake_case conventions.
Spreadsheet & CSV headersClean up inconsistent column headers before importing data into code or a database.
Class & component namesGenerate PascalCase names for classes, React components, or C#/Java types from a plain description.

Frequently asked questions

What's the difference between camelCase and PascalCase?

Both join words with no spaces and capitalize the start of each word after the first. The difference is the very first word: camelCase starts lowercase (firstName), while PascalCase capitalizes it too (FirstName). PascalCase is typically used for class and type names, while camelCase is used for variables and functions.

Can I convert a whole list of names at once?

Yes. Paste one name per line and keep "Treat each line as a separate name" turned on — each line is converted independently and the results are shown stacked in the same order.

Can I convert an existing snake_case or kebab-case name to camelCase?

Yes. The tool detects underscores, hyphens, spaces, and existing capital-letter word boundaries in your input, splits it back into individual words, and rebuilds it in whichever format you need.

How does it handle acronyms like "ID" or "URL"?

Runs of capital letters are treated as their own word during splitting, so "APIResponse" is read as "API" + "Response". In camelCase and PascalCase output, that acronym is capitalized only on its first letter (e.g. "apiResponse"), matching common style guide conventions.

What happens to numbers in the input?

Digits are kept attached to the nearest word boundary rather than being treated as a separate word, so "user2Id" and "user_id_2" convert sensibly without inserting awkward extra separators around the number.

Is my text uploaded anywhere?

No. All splitting and conversion happens locally in your browser. Nothing you type or paste is sent to a server, logged, or stored anywhere outside your own device.

Does it support languages other than English?

Word-splitting on separators (spaces, underscores, hyphens, capital letters) works the same regardless of language. Accented Latin characters are supported; non-Latin scripts are passed through but won't be split into separate "words" the way Latin-alphabet text is.

Related tools