About This Tool
Convert names with spaces, hyphens, underscores, periods, or existing case boundaries to camelCase. Acronyms such as XML are treated as whole words: XMLHttpRequest becomes xmlHttpRequest.
How to Use It
- Enter a phrase, an existing identifier, or several names on separate lines.
- Each line is converted independently by default. Turn that option off to treat all input as one name.
- Click Convert and check that the first word is lowercase and later words start with uppercase letters.
- Copy or download the result, then clear the input to process more names.
Examples
- Hello World → helloWorld; hello_world → helloWorld.
- XMLHttpRequest → xmlHttpRequest; XML HTTP Request → xmlHttpRequest.
- Café Name → caféName. Unicode letters are preserved rather than stripped by an ASCII-only filter.
Rules and Limits
Spaces, hyphens, underscores, and changes in letter case can separate words within a name. It splits lowercase-to-uppercase transitions and the boundary between an acronym and a normal word, then handles common separators. The first word is lowercased; later words are lowercased before their first letter is capitalized. Characters without case, such as Chinese characters, are preserved without translation or transliteration.
Common Uses
- Prepare JavaScript variable and property names in batches.
- Turn design field labels into project naming conventions.
- Normalize names that use different separators.
Privacy
Your text, files, and previews are processed in your browser. Your input is never uploaded or automatically saved. Save anything you need to keep before leaving the page.
FAQ
What is camelCase?
The first word starts lowercase and later words start uppercase, with no separators, as in userName.
How is it different from PascalCase?
PascalCase also capitalizes the first word, as in UserName. This page outputs camelCase.
How are acronyms handled?
Acronyms such as XML and HTTP are normalized as words, so XML HTTP Request becomes xmlHttpRequest.
Is every result a valid programming identifier?
Not necessarily. This tool converts naming style; it does not check every language’s reserved words, starting-character restrictions, or identifier rules.