PascalCase Converter

Convert any phrase into PascalCase — every word capitalised, no separators. Standard for class names, types, and React components.

Example: user profile background colorUserProfileBackgroundColor

PascalCase (sometimes called UpperCamelCase or StudlyCaps) is a naming convention where every word starts with an uppercase letter and there are no separators between words. It's the standard for class names, type names, and constructor functions in nearly every modern language.

The convention is named after the Pascal programming language (1970s), which used it for type names. The closely-related camelCase differs only in the first letter — PascalCase capitalises the first word; camelCase lowercases it.

Use cases

Class and type names

UserProfile, HttpClient, OrderRepository. Java, C#, TypeScript, Swift, Kotlin, and Python (PEP 8) all use PascalCase for class names regardless of what they use for variables.

React component names

React requires component names to be PascalCase — <UserCard /> not <userCard />. JSX uses the casing to decide whether a tag is a custom component (capitalised) or an HTML element (lowercase).

TypeScript interfaces and types

Interface names (UserSettings, ApiResponse) and type aliases are PascalCase. Some teams prefix interfaces with I (IUserSettings); the modern TypeScript convention is to skip the prefix.

Enum members

Most languages use PascalCase for enum members: OrderStatus.Pending, HttpStatus.NotFound. (Some older C++ code uses CONSTANT_CASE for enums; modern usage favours PascalCase.)

File names for class-defining files

If a file defines a class, the file name often matches the class name in PascalCase: UserProfile.tsx, OrderService.cs.

Frequently asked questions

PascalCase vs camelCase — which is right?

Both are correct in different contexts. camelCase for variables, function names, and object properties. PascalCase for classes, types, and (in React) components. Most languages use both — they're complementary, not interchangeable.

Why is it called Pascal case?

The Pascal language (designed by Niklaus Wirth, 1970) used UpperCamelCase for type names — popularising the convention enough that it took the language's name. Pascal itself is no longer mainstream, but the naming convention outlived it.

Are acronyms inside a PascalCase identifier capitalised?

Two schools of thought: full caps (HTTPClient, XMLParser) or treated-as-words (HttpClient, XmlParser). Microsoft and most modern style guides recommend the latter (treat acronyms ≥ 3 letters as words). It scans more uniformly inside long identifiers.

What's StudlyCaps?

StudlyCaps is the same convention as PascalCase but the term is older (1980s) and slightly more informal. The two names refer to the identical pattern.

Embed our tools on your website

Free for any site. No signup. Iframe loads from our servers and stays up-to-date automatically.

📋 Embed the Word Counter

Copy this snippet:

Live preview:

📋 Embed this PascalCase Converter

Copy this snippet:

Live preview:

Want more options? All embeddable tools →