CamelCase Converter
Convert text to camelCase — the standard naming convention for variables in JavaScript, Java, Swift, and Dart.
About CamelCase Converter
camelCase is a naming convention where the first word is all lowercase and each subsequent word starts with an uppercase letter, with no separators between words. Examples: firstName, getUserById, myVariableName, parseJsonResponse. It is the dominant convention for variable and function names in JavaScript, TypeScript, Java, Kotlin, Swift, Dart, and C#.
This converter handles input in any format — spaces, hyphens, underscores, mixed case, and combinations. It strips all separators, lowercases each word, then capitalizes the first letter of each word except the first. Numbers are preserved in place.
FAQ
What is the difference between camelCase and PascalCase?
camelCase starts with a lowercase letter (myVariableName) while PascalCase (also called UpperCamelCase) starts with an uppercase letter (MyClassName). PascalCase is typically used for class names and component names, while camelCase is used for variables and methods.
Which case convention should I use?
Follow the convention of your language and framework. JavaScript/TypeScript: camelCase for variables, PascalCase for classes. Python: snake_case for everything (PEP 8). CSS: kebab-case for class names. SQL: snake_case for column names. Go: camelCase for unexported, PascalCase for exported identifiers.