Paste any snake_case identifier — lowercase words joined by underscores like my_variable_name — and get the equivalent camelCase string such as myVariableName instantly. It is the quickest way to port Python, Ruby, or SQL names into JavaScript, TypeScript, or JSON keys, which conventionally use camelCase.
How it works
The converter runs two steps:
- Tokenize. The input is split on every run of non-alphanumeric characters (
[^A-Za-z0-9]+), empty pieces are dropped, and each remaining token is lowercased. This means underscores, spaces, hyphens, and even multiple delimiters in a row all act as a single word boundary. - Recombine. The first word stays lowercase; every word after it has its first letter capitalised. The words are then joined with nothing between them.
Because the splitter only breaks on non-alphanumeric characters, embedded digits stay attached to their word.
Example
| Input | Output |
|---|---|
my_variable_name | myVariableName |
order__total amount | orderTotalAmount |
http_2_client | http2Client |
USER_ID | userId |
Walking through my_variable_name: it splits into my, variable, name; the first stays as my; the others become Variable and Name; joined you get myVariableName.
Everything runs in your browser, so your code never leaves your machine.