PascalCase Converter

Character Count: 0 Word Count: 0 Line Count: 0
Pc

Convert Text to PascalCase for Classes, Types, and Components

PascalCase (also called UpperCamelCase) is a naming convention where every word starts with a capital letter and words are joined without separators, for example, UserProfile or CalculateTotalRevenue. It is the standard convention for class names, interface names, and component names in C#, Java, TypeScript, and React. The name comes from the Pascal programming language, which popularized the convention in the 1970s.

This converter automatically detects word boundaries in plain text, camelCase, snake_case, and kebab-case input, capitalizes the first letter of every word, and removes all separators. Each line is converted independently, so you can rename a list of identifiers in one paste.

What is PascalCase used for in programming?

PascalCase is the standard naming convention for class names and type definitions in nearly every object-oriented language. In C#, it is used for all public members including methods, properties, and events. In Java, it is used for class names, interfaces, and enums. In TypeScript and JavaScript, it is the convention for React component names, Angular services, and type aliases. Swift and Kotlin use it for protocols, structs, and classes.

Is PascalCase the same as UpperCamelCase?

Yes. PascalCase and UpperCamelCase are two names for the same convention: every word including the first starts with a capital letter (UserProfile, CalculateTotal). Standard camelCase (sometimes called lowerCamelCase) is the variation where the first word is lowercase (userProfile, calculateTotal). Most style guides use PascalCase for types and classes and camelCase for variables and functions.

Can this convert camelCase or snake_case to PascalCase?

Yes. Paste getUserName and the converter outputs GetUserName. Paste get_user_name and it outputs the same result. It also handles kebab-case (get-user-name), SCREAMING_SNAKE_CASE (GET_USER_NAME), and plain text (get user name). The tool splits on all common word boundaries, so mixed formats like my_app-name also convert correctly to MyAppName.

How are acronyms handled in PascalCase?

The converter splits acronym runs at the boundary where a new word begins. For example, XMLParser is split into XML and Parser, then each word is capitalized to produce XmlParser. This follows the .NET and Google style guide recommendation of treating acronyms as regular words in PascalCase. If your style guide preserves full acronyms (like XMLParser), you may need to adjust the output manually for those cases.