Camel Case Converter

Text Tools

How to use the Camel Case Converter

Convert to camelCase in three steps:

1

Paste your phrases

Enter one phrase per line. Each line can use spaces, hyphens, underscores, or be in PascalCase/snake_case — all formats are accepted.

2

Click Convert

Press 'Convert to camelCase'. The first word becomes fully lowercase; every subsequent word is capitalised with no separator.

3

Copy or download

Copy the camelCase output to your clipboard or download as a .txt file for use in your codebase.


When to use this tool

Use the camelCase converter for variable and function naming in code:

  • Converting database column names from snake_case to JavaScript variable names
  • Transforming human-readable field labels into valid JS/TS variable identifiers
  • Converting API response field names from different conventions to camelCase
  • Generating React prop names, state variables, or hook names from plain descriptions
  • Batch-converting a list of database fields or CSV headers to camelCase in one go
  • Reformatting Python snake_case function names to JavaScript camelCase equivalents

Frequently asked questions

Q:What input formats are accepted?
The converter accepts spaces (hello world), hyphens (hello-world), underscores (hello_world), forward slashes (hello/world), PascalCase (HelloWorld), and any combination of these. All are correctly normalised to camelCase.
Q:What is the difference between camelCase and PascalCase?
camelCase starts with a lowercase letter (helloWorld, getUserById). PascalCase starts with an uppercase letter (HelloWorld, GetUserById). Use camelCase for variables, function names, and object properties in JavaScript/TypeScript; use PascalCase for class names, React component names, and TypeScript interfaces.
Q:Can I convert multiple phrases at once?
Yes — enter one phrase per line and all lines are converted simultaneously. This is useful for batch-converting an entire list of database column names, API fields, or CSV headers into camelCase identifiers.
Q:How does it handle numbers in the input?
Numbers are treated as part of the word they are attached to. For example, 'address2' remains 'address2' and 'user 2 profile' becomes 'user2Profile'. If a number is surrounded by spaces it is treated as a separate word token.
Q:Does it handle ALL CAPS acronyms like 'API' or 'URL'?
The converter lowercases every word before capitalising the first letter of each subsequent token. So 'get API key' becomes 'getApiKey' and 'parse URL string' becomes 'parseUrlString'. If you prefer to preserve the acronym casing (getAPIKey), you will need to adjust those manually after conversion.
Q:Which programming languages use camelCase as their standard?
camelCase is the dominant convention for variables and functions in JavaScript, TypeScript, Java, Swift, Kotlin, C#, Dart (Flutter), and Go. Python uses snake_case for variables and functions instead. CSS uses kebab-case for property names. Use our other converters for snake_case, kebab-case, and PascalCase as needed.