camelCase Converter
This tool converts words and phrases to camelCase or PascalCase, the styles used for variable, function and class names in code. It handles one name per line.
- Free, no sign-up
- Nothing is sent to a server
- Worldwide
How to use camelCase Converter online
- Paste the names. Type phrases or paste a list.
- Pick camel or Pascal. Choose the style.
- Read the result. The converted names appear at once.
- Copy it. Copy or save the list.
Why use this free camelCase Converter
- camelCase and PascalCase
- One name per line
- Splits existing camelCase
- Removes spaces and symbols
- Keeps digits
- Share by link
What camelCase is
In camelCase the words are joined with no spaces, the first word is in lower case, and each later word starts with a capital, as in userAccountId. PascalCase is the same except that the first word is capitalised too, as in UserAccountId. Many programming languages use them for names.
How the tool splits words
It finds words as runs of letters and digits, so spaces, dashes, underscores and dots all count as breaks. It also splits words that are already in camel case, so maxRetryCount is read as max, retry and count. That makes it useful for changing the style of a list of existing names.
A worked example
Two lines, "user account id" and "max retry count", become "userAccountId" and "maxRetryCount" in camelCase. Switch to PascalCase and the same lines become UserAccountId and MaxRetryCount.
Use it on lists
With the one-line-each option on, every line is converted on its own, so you can paste a column of names from a spreadsheet or a list of database fields and get a column of code names back. Switch the option off to join all the text into a single name.
Naming habits
Each language and team has its own rule. JavaScript uses camelCase for variables and PascalCase for classes, while Python prefers snake_case for variables. The snake case and kebab case converters cover those. Check your own style guide before renaming across a project.
Using the tool
The result shows under the boxes and refreshes as you edit. Open a text file into the box, or drop one on it.
camelCase Converter: frequently asked questions
What is camelCase?
What is the difference from PascalCase?
Does it split names that are already camelCase?
Are digits kept?
Can I convert a whole list?
Does the camelCase Converter keep a copy of my text?
Is there a way to reuse the camelCase Converter result?
Related searches for camelCase Converter
- camelCase Converter online
- free camelCase Converter
- camelCase Converter online free
- camelCase Converter for mobile
- camelCase Converter without sign up
- camelCase Converter – Text & Writing Tools
camelCase Converter is a free online tool on MAITBOX, in the Text & Writing Tools group. It runs in your browser, so what you type is not sent to a server. It works on Android and iPhone, and on Windows, Mac and Linux, with no download and no account.