About this tool
Convert any phrase to camelCase — plus PascalCase and CONSTANT_CASE.
A camel case converter turns an ordinary phrase into a valid identifier: it splits your text on every run of non-alphanumeric characters, lowercases the first word, capitalises the first letter of each word after it, and joins them with no separator — so "my variable name here" becomes "myVariableNameHere". The same split also produces PascalCase and CONSTANT_CASE in one pass, which are the two other conventions you usually need alongside it. Useful whenever you are naming a variable, JSON key, class or environment constant and want all three forms without retyping.
Open Camel Case Converter on AltFTool — it loads instantly in your browser.
Type or paste your words into the Text box, which starts with my variable name here; ASCII letters and digits are kept, while spaces, punctuation and non-ASCII characters mark word breaks
Watch the Result line update as you type — it holds the camelCase form, while PascalCase and CONSTANT_CASE appear in tiles directly beneath it
Press Copy to put the whole summary on the clipboard, Download to save it as camel-case-converter.txt, or Reset to restore the default text
camelCase, PascalCase and CONSTANT_CASE are produced from the same word split, so the three names for a concept can never drift apart.
Hyphens, underscores, dots, slashes, brackets and repeated spaces are all treated as word boundaries, so messy headings convert cleanly without pre-cleaning.
Every word after the first is capitalised then lowercased throughout, so SHOUTED or MiXeD input comes out uniform instead of preserving stray capitals.
Only the first character. camelCase leaves the first word lowercase (myVariableName); PascalCase capitalises it too (MyVariableName). By convention JavaScript and Java use camelCase for variables, functions and object keys, and PascalCase for classes, types and React components.
It breaks the text at every run of characters that are not letters or digits — spaces, hyphens, underscores, dots, commas, brackets and so on — and discards them. So "user-id", "user_id" and "user id" all produce the same result, userId.
Because the split is based on separator characters, not on capital letters. "myVariableName" contains no separators, so it is treated as a single word and lowercased to "myvariablename". Insert spaces or hyphens between the words first if you want it recased.
Digits are kept as part of a word — "order 2 total" gives order2Total — because 0-9 counts as alphanumeric in the split. Be aware that a phrase starting with a digit produces an identifier starting with a digit, which is not valid in most languages, so prefix it yourself.
Add the Camel Case Converter widget to your blog or website — free, responsive, no signup. Just keep the “Widget by AltFTool” credit link visible.
<iframe src="https://www.altftool.com/embed/widget/camel-case-converter"
title="Camel Case Converter — free AltFTool widget"
width="100%" height="640" style="border:0;border-radius:12px;overflow:hidden"
loading="lazy" referrerpolicy="no-referrer-when-downgrade" allow="clipboard-write"></iframe>
<p style="font-size:12px;margin:4px 0 0">Widget by <a href="https://www.altftool.com/tools/all/camel-case-converter?utm_source=embed&utm_medium=widget" rel="nofollow">AltFTool — free online tools</a></p>