camelCase Converter
Convert text, snake_case or kebab-case names to camelCase. Handles acronyms, numbers and accented letters, converting each line separately. Free.
Example: user account id → userAccountId
Each line is converted separately. Words are split at spaces, punctuation, _ - . / and camelCase boundaries; acronyms such as XML stay together and digits stay attached to the previous word.
Related Tools
View AllWhat is camelCase?
This tool converts phrases and identifiers to camelCase: the first word is lowercase and every following word starts with a capital letter, with no separators – the usual style for JavaScript and Java variables and JSON keys.
How to use camelCase
- Type or paste text into the Input box – one identifier or phrase per line (or click Load sample).
- The converted text appears instantly in the Output box.
- Click Copy to copy the result.
Example
user account id XMLHttpRequest2Go
userAccountId xmlHttpRequest2Go
When to use camelCase
Use it to rename variables, JSON properties or API fields to JavaScript conventions. Do not use it for class names (use PascalCase) or constants (use CONSTANT_CASE).
How camelCase works
The input is split into words, the first word is lower-cased and every other word is capitalised (first letter upper, rest lower), then the words are joined without separators. Words are split at spaces, punctuation and the separators _ - . /, and at case changes inside identifiers: fooBar → foo + Bar, and an acronym run is kept together (XMLHttpRequest → XML + Http + Request). Digits stay attached to the word before them (Request2Go → Request2 + Go), apostrophes inside words are dropped (don't → dont), and letters of any script (é, ñ, Cyrillic, Greek…) are supported. Every line is converted separately.
Common Use Cases
- Converting database column names (user_id) to JS properties (userId)
- Renaming CSS kebab-case names for CSS-in-JS
- Creating variable names from plain-English descriptions
- Normalising API field names
Security Note
Everything runs locally in your browser; the code you paste is not uploaded.
FAQs
What happens to acronyms like HTTP?
They are treated as one word and capitalised like any other word: HTTPServer → httpServer.
Are numbers kept?
Yes, they stay attached to the preceding word.
Can I convert many names at once?
Yes, put one per line.