ConvertCaseTool

Accidentally typed your text in the wrong case?

Simply drop your text below to quickly convert it into uppercase, lowercase, title case, sentence case, and other text formats using our free online case converter.

0 chars·0 words·0 lines

What is a PascalCase converter?

A PascalCase converter transforms plain text or other naming formats into PascalCase — the naming convention used for class names, React components, TypeScript interfaces, and enums across C#, Java, and TypeScript. It strips spaces and separators and capitalises the first letter of every word, including the first.

Before & After

Before

user profile page

After

UserProfilePage

Before

get-user-by-id

After

GetUserById

Before

api_response_model

After

ApiResponseModel

Where PascalCase is used

  • React components

    Every React component must be PascalCase — <UserCard />, <NavigationMenu />, <AuthProvider />. The JSX compiler requires it.

  • C# & .NET

    All classes, interfaces, enums, and public methods in C# follow PascalCase per Microsoft's official style guidelines.

  • TypeScript interfaces & types

    Interface names (UserProfile), type aliases (ApiResponse), and enum names (HttpMethod) all follow PascalCase in TypeScript.

  • Java classes

    Every Java class name follows PascalCase — ArrayList, StringBuilder, HttpServletRequest.

  • Python classes

    PEP 8 mandates PascalCase for all Python class names, even though variables and functions use snake_case.

Frequently asked questions

What is PascalCase?

PascalCase (also called UpperCamelCase) is a naming convention where every word starts with a capital letter and there are no spaces or separators. Example: "user profile page" becomes "UserProfilePage". It differs from camelCase only in that the very first letter is also capitalised.

When should I use PascalCase?

PascalCase is the standard for: class names in C#, Java, and TypeScript; React component names (MyComponent); interface and type names (UserProfile); enum names and values; C# method names; and .NET namespace segments.

What is the difference between PascalCase and camelCase?

Both join words without separators and capitalise internal words. PascalCase capitalises every word including the first (UserProfile). camelCase starts with a lowercase letter (userProfile). Use PascalCase for classes and components; camelCase for variables and functions.

Why do React components need PascalCase?

React uses PascalCase to distinguish components from native HTML elements. A tag starting with a lowercase letter (like <div>) is treated as a DOM element. A tag starting with an uppercase letter (<MyComponent>) is treated as a React component. This distinction is enforced by the JSX compiler.

Does PascalCase work for TypeScript interfaces and types?

Yes — TypeScript conventions mandate PascalCase for all interface names (interface UserProfile), type aliases (type ApiResponse), and enum names (enum Direction). This is enforced by tslint and ESLint TypeScript rules.

Can I convert snake_case or kebab-case to PascalCase?

Yes. Paste snake_case, kebab-case, camelCase, or plain text — the converter strips all separators and outputs clean PascalCase with every word capitalised.

Related tools