TextyConverterbeta
⌘K

PascalCase Converter

Convert any string to PascalCase — every word capitalized, no separators. Used for class and component names.

0 characters
0 characters

About PascalCase Converter

PascalCase (also called UpperCamelCase) is the convention for class names, type aliases, React components, and other 'capital-first' identifiers in most modern languages. It looks like camelCase except the very first word is also capitalized. This converter accepts input from any common shape and emits clean PascalCase.

When to use it

  • Generating React component names from human-readable labels
  • Producing class or type names from a glossary or domain model
  • Converting snake_case identifiers from another language into PascalCase
  • Normalizing inconsistent naming across a codebase

How it works

The input is split into words by recognising whitespace, hyphens, underscores, dots, slashes, camelCase transitions, acronym boundaries, and letter-to-digit boundaries. Each word is capitalized (first letter uppercased, rest lowercased) and joined without a separator.

Examples

Space-separated → PascalCase
user profile page
UserProfilePage
kebab-case → PascalCase
html-parser-error
HtmlParserError

Frequently asked questions

What's the difference between PascalCase and camelCase?
Only the first letter. PascalCase capitalizes every word including the first; camelCase keeps the first word lowercase. Both join words without separators.
How are acronyms handled?
Acronyms in input ('HTMLParserError') become single capitalized words in the output ('HtmlParserError'). This matches the Google and Microsoft naming guidelines.
Is digit-letter boundary detection used?
Yes. 'item2name' becomes 'Item2Name'. Use this if you want digits to act as a word boundary in your identifiers.

Related tools