What Is PascalCase? Examples and Rules
Learn PascalCase naming rules, examples, and differences from camelCase and snake_case.
Definition
PascalCase capitalizes the first letter of every word and removes spaces, for example: UserProfileCard.
Where It Is Used
Common in class names, component names, and exported types in many languages and frameworks.
PascalCase vs camelCase
camelCase starts with a lowercase letter; PascalCase starts with uppercase. Use according to language conventions.
Frequently asked questions
Is PascalCase the same as UpperCamelCase?
Yes. PascalCase and UpperCamelCase are effectively the same naming style.
When should I use PascalCase?
Use it for class names, React component names, and types where your code style guide recommends it.