PascalCase Converter

Convert text to PascalCase instantly for class and React component names — free online.

Convert to

About

About the PascalCase Converter

Joins words with no separator and capitalizes every word including the first — "user profile card" becomes "UserProfileCard". It's the standard naming convention for classes in most C-family languages and for components in frameworks like React.

PascalCase uses the same word-splitting as camelCase — spaces, hyphens, underscores and other symbols all separate words — but capitalises the first word as well, so "order_line_item" becomes "OrderLineItem". The rest of each word is lowercased, so acronyms are flattened: "HTTP request" becomes "HttpRequest", matching names like .NET's own HttpRequest class.

Choose what to view about this tool

Guide

Using the PascalCase Converter

  1. 1

    Step 1

    Type or paste your text into the input box.

  2. 2

    Step 2

    Click PascalCase, or it converts live as you type since this page presets that case.

  3. 3

    Step 3

    Copy the result, or try one of the other case buttons below the input.

  • Builds PascalCase as you type from words split by spaces, hyphens, underscores or dots
  • Flattens acronyms to one capital, like "XML parser" → "XmlParser"
  • Keeps digits, so "version 2 api" becomes "Version2Api"
  • Ten other cases are one click away on the same text
  • Copy the result in one click, or Clear to start over
  • Runs entirely in your browser — free, with no sign-up and no limit

C# and .NET developers

Developers name classes, methods and properties in the PascalCase C# uses.

React and Vue developers

Front-end developers name components, which must start with a capital in JSX.

TypeScript developers

Developers name types and interfaces.

Game developers

Unity developers name C# scripts and classes.

Convert to another case

Examples

PascalCase Converter examples

4 worked examples

01

A component name

"user profile card" converts to UserProfileCard — 3 words joined together with each one capitalized.

02

Mixed separators

"my-old_file name" converts to MyOldFileName — hyphens and underscores are both treated as word breaks, same as spaces.

03

Already-uppercase letters get lowered

"HTML5 parser v2" converts to Html5ParserV2 — only the first letter of each word stays capitalized, the rest is lowercased.

04

Keeping digits

"version 2 api client" converts to Version2ApiClient — numbers are kept as their own word.

FAQ

Frequently asked questions

Quick answers to common questions about the PascalCase Converter.

How do I convert text to PascalCase?

Type or paste your text above and click PascalCase (or just start typing — this page previews PascalCase live). Copy the result when you're done.

Is this PascalCase converter free?

Yes. It's free, with no sign-up and no limit on how much text you convert.

Where is PascalCase used?

PascalCase joins words with no separator and capitalizes every word including the first, the standard naming convention for classes and components in most C-family languages.

What's the difference between PascalCase and camelCase?

PascalCase capitalizes every word including the first (UserProfileCard), while camelCase leaves the first word lowercase (userProfileCard) — PascalCase is typically used for classes and components, camelCase for variables and functions.

Can I convert to a different case?

Yes — the same tool handles UPPERCASE, lowercase, Title Case, Sentence case, camelCase, snake_case and kebab-case. Click any of the buttons below the input, or use one of the dedicated pages below.

How does PascalCase handle acronyms like HTML or API?

Every word gets a capital first letter and the rest lowercase, so "html parser" and "HTML parser" both become HtmlParser. That matches the .NET naming guidelines for acronyms longer than two letters; if your codebase writes HTMLParser instead, adjust it by hand.

What happens to punctuation and symbols?

Every character that isn't a letter or digit is treated as a word break and dropped, so "user-profile card" becomes UserProfileCard and "order #42 total" becomes Order42Total.

Is PascalCase the same as UpperCamelCase?

Yes. PascalCase is also called UpperCamelCase, and camelCase is sometimes called lowerCamelCase. The only difference between the two is whether the very first letter is a capital.

Can I turn a file name into PascalCase?

Yes, but the dot is treated as a separator too, so "user_profile_card.jsx" becomes UserProfileCardJsx. Convert the name without its extension, then add .jsx back — handy for naming React component files.

Still have a question? Contact us

Report a problem

PascalCase Converter

What went wrong?
    or paste a screenshot