Camel Case Converter
Convert text to camelCase and PascalCase for variable and property names. Free and runs in your browser.
Independently verified for accuracy
Calculator by Toolsloft ↗- camelCase
- helloWorldExample
- PascalCase
- HelloWorldExample
Turn a phrase, label, or column name into camelCase and PascalCase in one step. It splits your text on spaces, underscores, hyphens, and punctuation, then joins the words with no separators. Handy for variable names, JSON keys, and function names.
How this is calculated
The input is split on any run of non-alphanumeric characters to get the individual words. For camelCase the first word is lowercased and each later word is capitalized; for PascalCase every word is capitalized. Each word is otherwise lowercased, so mixed-case input is normalized.
How to use
- Type or paste your words, label, or phrase into the box.
- Read the camelCase and PascalCase versions below.
- Copy the format you need into your code.
Examples
- Words to camelCase:
"hello world" → helloWorld - Snake to Pascal:
"user_id 2" → UserId2
FAQ
- What is the difference between camelCase and PascalCase?
- Both remove separators and join the words together. camelCase starts with a lowercase letter (helloWorld), while PascalCase capitalizes the first letter too (HelloWorld).
- How are separators handled?
- Spaces, underscores, hyphens, dots, and other non-alphanumeric characters are treated as word boundaries and removed. Numbers are kept as part of the word they touch.
- What happens to text that is already mixed case?
- Each word is lowercased before it is re-cased, so input like "camelCase" is normalized. If you need to preserve internal capitals, split the words with spaces first.