Text Tools
camelCase converter.
Turn a phrase, snake_case or kebab-case name into camelCase (or PascalCase) for variables and functions. One name per line.
Your text
Result
Type or paste text above and the result appears here.
About this camelCase converter
camelCase joins words with no separator, lowercases the first word and capitalizes the first letter of each later word: user id becomes userId. PascalCase (also called UpperCamelCase or CapWords) capitalizes the first word too: UserId.
How the words are found
- Spaces, underscores, hyphens, dots and other punctuation separate words and are removed.
- Existing camelCase is split first:
getHTTPResponsegives get, HTTP, Response, so the result isgetHttpResponse. - Acronyms are not kept in capitals:
HTTPbecomesHttp. Some style guides prefer that and some preferHTTP, so check yours. - Apostrophes are removed (don't gives
dont), digits are kept, and each line is converted separately.
Where each style is used
Google's JavaScript style guide uses lowerCamelCase for variables, functions and methods and UpperCamelCase for classes. Oracle's Java conventions capitalize the first letter of each internal word, with a lowercase first letter for methods and variables. PEP 8 uses CapWords for Python classes and prefers lowercase_with_underscores for functions, so for Python functions use the snake_case converter.
Examples
| Input | Case | Result |
|---|---|---|
user id | camelCase | userId |
first-name | camelCase | firstName |
GET_HTTP_RESPONSE | camelCase | getHttpResponse |
getHTTPResponse | PascalCase | GetHttpResponse |
don't stop | camelCase | dontStop |
More: All 13 cases in one place: Case Converter · Uppercase Converter · Lowercase Converter · Title Case Converter · Sentence Case Converter · snake_case Converter · Alphabetical Order Sorter
Sources (retrieved October 2026): PEP 8, Naming Conventions; Google JavaScript Style Guide, Naming; Oracle, Java Code Conventions, Naming Conventions.
FAQ: camelCase converter
How do I convert text to camelCase?
Type or paste the phrase. The first word is lowercased and each later word starts with a capital, with spaces and punctuation removed. Use the buttons to switch to PascalCase.
What is the difference between camelCase and PascalCase?
camelCase starts with a lowercase letter (userId); PascalCase starts with a capital (UserId). Many languages use PascalCase for class names and camelCase for variables and functions.
Can I convert snake_case or kebab-case to camelCase?
Yes. Underscores and hyphens are treated as word breaks, so first_name and first-name both become firstName.
Can I convert many names at once?
Yes. Put one name per line; each line is converted on its own and the line breaks are kept.