This PascalCase converter removes spaces and capitalises the first letter of every word, including the first — turning user profile into UserProfile. It is the convention for class names, React components and type names.
How to use the PascalCase converter
- Paste a phrase or an identifier in any case.
- The PascalCase (UpperCamelCase) version appears instantly.
- Copy it into your code.
When to use PascalCase
PascalCase — also called UpperCamelCase — is standard for classes, interfaces, enums and React components: UserProfile, InvoiceLineItem, HttpClient. The rule of thumb across many languages is PascalCase for types and camelCase for the variables and functions that use them.
PascalCase next to the other styles
All the programming cases carry the same words and differ only in separators and capitals: user profile becomes UserProfile in PascalCase, userProfile in camelCase, user_profile in snake_case and user-profile in kebab-case. Codebases mix them deliberately — PascalCase for the class, camelCase for the instance that holds it, snake_case for the database table it maps to — so converting the same name between styles is routine work. The camelCase and snake_case converters produce their versions from exactly the same input.
Examples
| Input | PascalCase |
|---|---|
| user profile | UserProfile |
| invoice_line_item | InvoiceLineItem |
| http-client | HttpClient |