Pascal Case Converter

Convert text to PascalCase, the convention for class names, types and React components.

56Characters
7Words
3Lines

Everything you type here is processed on your own device. No input is sent to a server, logged, or stored.

What the Pascal Case Converter does

This pascal case converter will convert text to PascalCase, the convention for class names, types and React components. Paste your text in, pick the options you need, and copy the result straight back out. It is most often used for naming a React or Vue component. The companion to this one is our remove empty lines tool.

How to use it

  1. Paste or type your text into the input box.
  2. The target case is already selected — change it from the dropdown if you need a different one.
  3. The converted text appears immediately as you type.
  4. Press Copy to put the result on your clipboard.

How it works

PascalCase, also called upper camel case, capitalises every word including the first. It is the convention for class and type names in most languages, and it is load-bearing in React: JSX treats a lowercase tag as an HTML element and an uppercase one as a component, so a component named in camelCase simply will not render.

The distinction between PascalCase for types and camelCase for values is one of the more consistently observed conventions across languages — C#, Java, TypeScript, Swift and Rust all draw the line in roughly the same place.

Rust is the exception worth knowing: it uses PascalCase for types and traits but snake_case for everything else, and the compiler will warn you if you get it wrong.

When to use it

  • Naming a React or Vue component.
  • Creating a class or type name from a description.
  • Converting a file name to a component name.
  • Normalising type names across a codebase.

Common mistakes to avoid

  • Naming a React component in camelCase, which makes JSX treat it as an HTML tag.
  • Using PascalCase for variables and functions, where camelCase is conventional.
  • Letting acronyms produce unreadable results like HTTPSConnection versus HttpsConnection — pick one and be consistent.

Frequently asked questions

What is PascalCase?

Every word capitalised with no separators: UserProfileCard. Also called upper camel case.

Why must React components be PascalCase?

Because JSX uses capitalisation to decide what a tag is. A lowercase tag becomes an HTML element; an uppercase one resolves to a component in scope.

Is PascalCase the same as title case?

No. Title case keeps spaces and leaves small words lowercase. PascalCase removes all separators and capitalises every word.

Related tools

See all text & writing tools →