camelCase Converter for Variables and Identifiers
Paste plain text, snake_case or kebab-case below and click camelCase. Words are joined with no separators and each word after the first gets a capital. Each line is converted separately, so you can paste a whole list of names.
Examples
user first name
userFirstName
created_at_date
createdAtDate
background-color
backgroundColor
Parse HTMLResponse
parseHtmlResponse
Where camelCase Is the Convention
- Variables and functions in JavaScript and TypeScript
- Variables and methods in Java and Kotlin
- Local variables and parameters in C#
- Property names in many JSON APIs
camelCase vs PascalCase vs snake_case
| Format | Example |
|---|---|
| camelCase | userFirstName |
| PascalCase | UserFirstName |
| snake_case | user_first_name |
| kebab-case | user-first-name |
| SCREAMING_SNAKE_CASE | USER_FIRST_NAME |
How Acronyms Are Handled
Acronyms are treated as normal words, so “HTMLResponse” becomes “htmlResponse” when it starts a name and “parseHtmlResponse” after another word. Most modern style guides prefer this form because the word boundaries stay clear. If your codebase writes “parseHTMLResponse”, adjust the result by hand.
Other Case Converters
Frequently Asked Questions
camelCase writes words together with no spaces, starting in lowercase and capitalizing each later word, as in userFirstName. The capitals in the middle look like the humps of a camel.
Paste your snake_case text into the box above and click camelCase. The underscores are removed and the following letters are capitalized, so created_at becomes createdAt.
They are removed so the result is a valid identifier. For example, “don't stop, now!” becomes dontStopNow.