Pascal Case Converter

Convert text and identifiers to PascalCase. Handles spaces, hyphens, underscores, and camelCase, ideal for class and type names.

Independently verified for accuracy

Calculator by Toolsloft ↗
PascalCase
HelloWorldExample

Convert any text into PascalCase, where every word starts with a capital letter and there are no spaces or separators. It is the standard style for class names, type names, and React components. Paste a phrase, a slug, or a camelCase name and get a clean identifier back.

How this is calculated

The input is split into words at every run of non-alphanumeric characters and at each camelCase or acronym boundary. The first letter of each word is capitalized, the rest is lowercased, and the words are joined with nothing between them.

How to use

  1. Paste the text or identifier you want to convert.
  2. Read the PascalCase result.
  3. Copy it into your code.

Examples

  • From a phrase: hello world becomes HelloWorld
  • From a slug: foo-bar becomes FooBar

FAQ

How is PascalCase different from camelCase?
They are identical except for the first letter. PascalCase capitalizes the first word too (UserName), while camelCase leaves it lowercase (userName).
What happens to an all-caps acronym like HTML?
It is treated as a single word and normalized, so "HTMLParser" becomes "HtmlParser". Each word gets one leading capital.

Embed this calculator

Add this free calculator to your own site. Copy the code and paste it where you want it to appear.