PascalCase Converter
Convert text to PascalCase by capitalizing the first letter of every word and removing spaces and punctuation.
How It Works
The PascalCase converter transforms any text into PascalCase format (also known as UpperCamelCase). In PascalCase, every word starts with an uppercase letter and all words are joined together without separators. Unlike camelCase, the very first letter is also capitalized.
For example:
- "hello world" becomes
HelloWorld - "get user name" becomes
GetUserName - "background-color" becomes
BackgroundColor - "max_retry_count" becomes
MaxRetryCount
PascalCase is the standard naming convention for:
- Class names in JavaScript, TypeScript, Java, C#, and Python
- React and Vue component names
- Type and interface names in TypeScript
- Namespace names in C# and .NET
- Enum type names across many languages
The converter intelligently splits input text on spaces, hyphens, underscores, and existing camelCase boundaries (transitions from lowercase to uppercase). This means you can convert from any naming convention — snake_case, kebab-case, camelCase, or plain English — into PascalCase. All processing happens entirely in your browser with zero server communication.