What Is PascalCase? Examples and Rules | Case Modify

PascalCase naming rules, real code examples, and how it differs from camelCase, snake_case, and kebab-case.

Definition

PascalCase joins words without spaces and capitalizes the first letter of each word: `UserProfile`, `OrderLineItem`, `HttpClientFactory`. It is also called UpperCamelCase.

Where teams use it

C# class names, Java public types, React component files, TypeScript interfaces, and Swift types commonly use PascalCase. API resource names in .NET ecosystems often appear in PascalCase in docs even when JSON properties use camelCase.

PascalCase vs camelCase

camelCase starts lowercase (`userProfile`). Use camelCase for variables and functions in JavaScript; PascalCase for React components and ES6 classes. Mixing them in one file is normal—consistency within each category matters.

Common mistakes

Acronyms trip people up: prefer `HttpRequest` or `HTTPRequest` per team style, but do not switch mid-repo. Avoid PascalCase for database snake_case columns unless your ORM maps names automatically.