When to use camelCase
camelCase keeps the first token lowercase and capitalizes later tokens. It commonly represents values or behavior such as userProfile or fetchUserProfile.
Naming convention guide
camelCase and PascalCase both remove separators and capitalize internal word boundaries. camelCase starts lowercase, while PascalCase starts uppercase; that difference often signals different roles in code.
| Difference | camelCase | PascalCase |
|---|---|---|
| Example | userProfileImage | UserProfileImage |
| Common use | Variables, properties, parameters, functions, and object fields | Classes, types, components, constructors, records, and models |
| First character | Lowercase | Uppercase |
| Word separator | None | None |
| Later words | Capitalized | Capitalized |
| Typical role | Value or behavior | Type or component |
camelCase keeps the first token lowercase and capitalizes later tokens. It commonly represents values or behavior such as userProfile or fetchUserProfile.
PascalCase, also called UpperCamelCase, capitalizes the first token too. Many ecosystems use it for types, classes, components, and constructors.
| Context | Recommended convention | Why |
|---|---|---|
| Variables, parameters, and ordinary functions | camelCase | Lower camel case visually identifies values and behavior in many JavaScript and Java-style codebases. |
| Classes, types, components, and constructors | PascalCase | Upper camel case helps distinguish type-like names from ordinary values. |
| Generated SDK or schema code | Follow the generator or schema convention | Manual recasing can break generated references and makes regeneration harder to compare. |
| Public package or framework API | Follow the ecosystem convention | Users benefit more from familiar naming than from a project-specific preference. |
Choose based on the identifier's semantic role. If a project uses camelCase for values and PascalCase for types, preserve that distinction and follow local acronym rules.
Paste an identifier below to see the target format and every supported developer naming style. Conversion runs locally in your browser.
UserProfileImageUrl
userProfileImageUrlUserProfileImageUrluser_profile_image_urluser-profile-image-urlUSER_PROFILE_IMAGE_URLuser.profile.image.urluser/profile/image/urlConversion happens locally in your browser. Your input is not sent to a conversion server.