camelCase converter
How do I use a camelcase converter? Turns words into one camelCase name, as used for variables in code.
| What it does | Turns words into one camelCase name, as used for variables in code. |
|---|---|
| Exact rule | The text is split into words at every character that is not a letter or digit, at a small letter followed by a capital, and between letters and digits; the words are joined with the first in lower-case and the others starting with a capital. |
| Example text | convert this phrase_to camelCase |
| Example result | convertThisPhraseToCamelCase |
| Limits | Names with acronyms lose their capitals (HTTPServer becomes httpServer). |
| Where it runs | In your browser: your text is never uploaded, stored or logged. |
How to use the camelcase converter
- Type a phrase or an identifier.
- Copy the camelCase name.
- Use snake_case or kebab-case for other naming styles.
How it works
The text is split into words at every character that is not a letter or digit, at a small letter followed by a capital, and between letters and digits; the words are joined with the first in lower-case and the others starting with a capital.
Names with acronyms lose their capitals (HTTPServer becomes httpServer).