camelCase Converter
Convert any text to camelCase. Remove spaces and punctuation, lowercase the first word, capitalise the rest. Standard JavaScript variable-naming convention.
Enter some text above to see all case conversions
About camelCase
camelCase is the dominant identifier convention in JavaScript, TypeScript, Java, Swift, and Kotlin. The first word is lowercase; every subsequent word starts with a capital letter; whitespace and punctuation disappear. So "user profile email" becomes "userProfileEmail", "first name" becomes "firstName", "API key" becomes "apiKey" (most conventions drop the all-caps treatment of acronyms beyond the first letter). When to reach for camelCase: JavaScript object keys where you control the schema, TypeScript and Java variable names, Swift property names, React prop names (className, onClick, etc.), JSON payload fields where backend and frontend are both JS/TS. Don't use camelCase for CSS class names (use kebab-case), Python variables (use snake_case), or URL paths (use kebab-case) — those ecosystems have their own conventions that camelCase fights against. Edge cases worth knowing: acronyms are handled differently across style guides. Google's JavaScript style guide says "parseHtml" (lowercase acronyms past the first letter); Microsoft and older Java conventions say "parseHTML" (all caps acronyms). Both are valid; consistency within a codebase matters more than choosing one over the other. The converter uses the more common "lowercase after first word" treatment.
Features
- Convert text to uppercase, lowercase, or title case
- Support for camelCase, snake_case, and kebab-case
- Sentence case and other formatting options
- Copy converted text to clipboard instantly
How to Use
- Paste or type your text into the input area
- Click the desired case conversion button
- View the converted text in the output area
- Copy the result using the copy button
Frequently Asked Questions
How does camelCase differ from PascalCase?
PascalCase capitalises every word including the first (UserProfile); camelCase lowercases the first word only (userProfile). JavaScript classes use PascalCase; variables, properties, and functions use camelCase. TypeScript keeps this rule. C# and .NET often use PascalCase for everything public.
Should acronyms like API and URL be all-caps in camelCase?
Style guides split. Google JavaScript and modern TypeScript prefer "apiUrl" / "parseHtml". Older Java and Microsoft conventions prefer "APIUrl" / "parseHTML". Both parse correctly; pick one per codebase and stick to it. The converter uses lowercase-after-first-word, which is the more common modern choice.
What does camelCase do with numbers?
Numbers get treated as word boundaries. "version 2 api" becomes "version2Api"; round-tripping gives you the same string. If you need the number glued without a capital break ("version2api"), convert to snake_case first (version_2_api), then post-process — there's no unambiguous single-step conversion.
Which ecosystem uses camelCase most?
JavaScript and TypeScript (the dominant convention for variables, functions, and object keys). Java variable names. Swift properties. React component props. JSON API payloads generated by JS/TS backends. Python and Go explicitly avoid camelCase; PHP is split; C# uses PascalCase for most identifiers.
Other Text Case Converter variants
snake_case
Convert any text to snake_case. Lowercase words joined by underscores — the Python, Ruby, and SQL column convention.
kebab-case
Convert any text to kebab-case. Lowercase words joined by hyphens — the standard for CSS class names, URL slugs, and npm package names.
PascalCase
Convert text to PascalCase. Capitalise every word, remove spaces and punctuation — the convention for class names, React components, and .NET types.
Title Case
Convert any text to Title Case. Capitalise the first letter of each word, keep whitespace — for book titles, chapter headings, and AP-Style headlines.