About this tool
camelCase joins words without spaces and capitalizes every word except the first: userProfileId, getHttpResponse. It’s the standard style for variables, functions and properties in JavaScript, TypeScript, Java, Kotlin, Swift and C#, and for keys in most JSON APIs. Paste phrases or names in any style, one per line, to convert them.
| Case | Example | Typical use |
|---|---|---|
| camelCase | userProfileId | JavaScript, Java and C# variables and functions; JSON keys |
| PascalCase | UserProfileId | Classes and types in most languages; C# methods; React components |
| snake_case | user_profile_id | Python, Ruby and Rust variables; database columns |
| kebab-case | user-profile-id | URLs, CSS classes, HTML attributes, file names, CLI flags |
| CONSTANT_CASE | USER_PROFILE_ID | Constants and environment variables |
How words are detected
Input can be in any style: spaces, snake_case, kebab-case, camelCase or PascalCase. Words are split at spaces, underscores, hyphens and other punctuation, at lowercase-to-uppercase changes (userId → user, Id), and at acronym boundaries (XMLHttpRequest → XML, Http, Request). Each line is converted separately, so you can paste a whole list of names at once. Letters with accents and non-Latin scripts are kept.
Acronyms: getHttpUrl or getHTTPURL?
By default acronyms are treated as words (getHttpUrl), which most style guides recommend (Google’s Java and JavaScript guides, Microsoft’s .NET guidelines for acronyms of three or more letters) because word boundaries stay readable. Turn on Keep acronyms in caps to write parseJSON or getURL instead.
Converting the other way? See snake_case, kebab-case or every case at once in the case converter.
FAQ
What is camelCase?
A naming style where words are joined without spaces and each word after the first starts with a capital letter, such as userProfileId.
How do I convert snake_case to camelCase?
Paste the snake_case names, one per line. user_profile_id becomes userProfileId.
What is the difference between camelCase and PascalCase?
camelCase starts with a lowercase letter (userId); PascalCase capitalizes the first word too (UserId). PascalCase is usually used for classes and types.
How are acronyms handled?
They are treated as words by default (XMLHttpRequest → xmlHttpRequest). Turn on “Keep acronyms in caps” to keep them uppercase.