PascalCase Converter

Convert any text to PascalCase format. Used for class names, React components, TypeScript types, and programming identifiers.

Try:

Options

What Is PascalCase?

PascalCase (also called UpperCamelCase or StudlyCase) is a naming convention where the first letter of every word is capitalized and all words are joined without spaces or separators. For example: MyClassName,UserProfileService, HttpResponseCode.

PascalCase vs camelCase

ConventionExampleFirst letterUsed for
PascalCaseMyVariableUppercaseClasses, types, components
camelCasemyVariableLowercaseVariables, functions, methods

Where PascalCase Is Used

  • C# / .NET — classes, methods, properties, namespaces
  • Java — class names and interfaces
  • React / Next.js — component names (UserProfile, NavBar)
  • TypeScript — interfaces, types, enums
  • Go — exported (public) identifiers
  • Swift — types, protocols, enum cases
  • Kotlin — classes and objects

Convert snake_case to PascalCase

Paste your snake_case text (e.g., user_first_name) into the converter above. The tool splits on underscores and capitalizes each word to produce UserFirstName.

Convert kebab-case to PascalCase

Similarly, kebab-case input like my-component-nameis converted to MyComponentName. This is useful when converting CSS class names or URL slugs to React component names.

FAQ

Is PascalCase the same as Title Case?

No. Title Case keeps spaces between words (“My Variable Name”) while PascalCase removes them (MyVariableName). Title Case is for human-readable text; PascalCase is for code identifiers.

When should I use PascalCase vs snake_case?

Follow your language's convention. C#, Java, and TypeScript types use PascalCase. Python and Ruby use snake_case for most identifiers. Mixing conventions in the same codebase is considered bad practice.

Related Tools