toolqik

169 · Text

Pascal Case Converter

Convert names and phrases to PascalCase for classes, types and components.

Runs in your browser
Options
Pascal Case

  

About this tool

PascalCase (also called UpperCamelCase) joins words and capitalizes the first letter of every word: UserProfile, HttpClient. It’s the convention for class, interface, type and enum names in nearly every language, for React and Vue component names, for C# methods and properties, and for Go exported identifiers.

CaseExampleTypical use
camelCaseuserProfileIdJavaScript, Java and C# variables and functions; JSON keys
PascalCaseUserProfileIdClasses and types in most languages; C# methods; React components
snake_caseuser_profile_idPython, Ruby and Rust variables; database columns
kebab-caseuser-profile-idURLs, CSS classes, HTML attributes, file names, CLI flags
CONSTANT_CASEUSER_PROFILE_IDConstants and environment variables

How words are detected

Input can be in any style: spaces, snake_case, kebab-case, camelCase or PascalCase. Words are split at spaces, underscores, hyphens and other punctuation, at lowercase-to-uppercase changes (userId → user, Id), and at acronym boundaries (XMLHttpRequest → XML, Http, Request). Each line is converted separately, so you can paste a whole list of names at once. Letters with accents and non-Latin scripts are kept.

Where PascalCase is required

  • React: components must start with a capital letter (<UserCard />), or React treats them as HTML tags.
  • Go: an identifier starting with a capital letter is exported from its package.
  • C# and .NET: types, methods, properties and public fields.

The name comes from the Pascal programming language, where this style was popular. Need the lowercase-first version? Use the camelCase converter.

FAQ

What is PascalCase?

A naming style where every word starts with a capital letter and there are no spaces: UserProfileCard. It is used for classes, types and components.

Is PascalCase the same as camelCase?

Almost: PascalCase capitalizes the first word too. camelCase starts lowercase (userProfile), PascalCase uppercase (UserProfile).

How do I convert kebab-case to PascalCase?

Paste the names, one per line. user-profile-card becomes UserProfileCard.

Why must React components use PascalCase?

JSX treats lowercase tags as HTML elements, so components need a capital first letter to be recognized.

esc
↑↓ navigate↵ open