PascalCase Converter

Convert text to PascalCase (UpperCamelCase) instantly. Used for class names, React components, and TypeScript types.

0 words0 characters

What Is PascalCase?

PascalCase (also called UpperCamelCase) is a naming convention where every word in a compound identifier starts with a capital letter and there are no spaces, hyphens, or underscores between words. The phrase “user account settings” becomes UserAccountSettings. Unlike camelCase, even the very first word is capitalised.

The convention is named after the Pascal programming language, which popularised the style in the 1970s and 1980s. Today it is the standard for class and type names in nearly every object-oriented language.

Where PascalCase Is Required

Object-Oriented Programming: Classes

Virtually every major object-oriented language mandates or strongly recommends PascalCase for class names:

  • Java: UserRepository, HttpClientFactory, OrderProcessingService
  • C#: CustomerAccount, DatabaseContext, EmailNotificationSender
  • Python: PEP 8 specifies PascalCase (called “CapWords”) for class names: ShoppingCart, DataProcessor
  • Ruby: ApplicationController, UserMailer, ActiveRecord::Base

React Components

In React, PascalCase is not just a convention — it is enforced by the framework. JSX distinguishes between native HTML elements and custom components by capitalisation: <div> is an HTML element, while <UserProfile> is a React component. If you name a component with a lowercase first letter, React will treat it as a DOM element and your component will not render correctly. All React component files and their exported functions must use PascalCase:Button.tsx, NavigationBar.tsx, ProductCard.tsx.

TypeScript Types and Interfaces

TypeScript uses PascalCase for type aliases, interfaces, enums, and enum members. This visually separates type-level constructs from value-level identifiers at a glance:

  • Interfaces: UserProfile, ApiResponse, CartItem
  • Type aliases: StringOrNumber, NullableUser
  • Enums: OrderStatus, PaymentMethod
  • Generic type parameters: T, TData, TError

C# Properties and Methods

C# is unusual in that it uses PascalCase not just for classes but also for all public members — properties, methods, and events. This is mandated by Microsoft's official .NET naming guidelines:GetUserById(), FirstName, OnSubmitClicked. If you are generating C# boilerplate from a plain-language specification, converting identifiers to PascalCase first saves considerable manual effort.

File Names for Components and Classes

Many ecosystems mirror the class or component name in the file name: a React component named ProductCard lives in ProductCard.tsx; a Java class named UserRepository lives in UserRepository.java. Using this converter on a list of plain-English component names lets you generate correctly cased file names in bulk.

PascalCase vs. camelCase: A Quick Reference

Both conventions join words without separators and capitalise each word. The only difference is the first letter:

  • PascalCase: UserAccount — used for classes, types, components
  • camelCase: userAccount — used for variables, functions, properties

How to Use This PascalCase Converter

Paste any text — natural language phrases, snake_case, kebab-case, or camelCase — into the input box. The converter capitalises the first letter of every word and removes all separators. Copy the result with one click.