PascalCase Converter

Capitalize every word and remove the spaces, as in UserAccount or OrderHistory.

0 words · 0 characters

Example

Before
user account
order_history
nav-menu-item
After
UserAccount
OrderHistory
NavMenuItem

Where PascalCase is used

PascalCase, also called UpperCamelCase, is the convention for class names in most languages, for types and components in TypeScript and React, and for public members in C#.

One name per line

Each line is converted separately. Existing camelCase, snake_case, and kebab-case input is split into words correctly before converting.

Why it’s called PascalCase

The name comes from the Pascal programming language, created by Niklaus Wirth in 1970, whose programmers popularized the style. Microsoft adopted the term for its .NET naming guidelines, which is why C# developers say “PascalCase” where Java developers might say “UpperCamelCase”.

Where you’ll need it

Classes, interfaces, enums, and type names in most languages; React and Vue component names, which must start with a capital so the framework can tell them apart from HTML tags; public methods and properties in C#. In Go, capitalization even controls visibility: a name starting with a capital letter is exported from its package.

Frequently asked questions

Is PascalCase the same as Title Case without spaces?

Almost. PascalCase capitalizes every word, including small ones like “of”: “Lord of the Rings” becomes LordOfTheRings.

How are acronyms handled?

They are treated as words: “HTTP client” becomes HttpClient, the form recommended by Microsoft’s .NET guidelines for acronyms longer than two letters.

Can I paste a list?

Yes. Each line is converted separately.

What is the difference between PascalCase and camelCase?

Only the first letter. PascalCase capitalizes every word (UserAccount), while camelCase leaves the first word lowercase (userAccount). Use the camelCase Converter for the second form.

What happens to numbers and accented letters?

They are kept. “version 2 beta” becomes Version2Beta and “café menu” becomes CaféMenu.

What happens to apostrophes and other punctuation?

Punctuation is treated as a word break and removed, so “don’t stop” becomes DonTStop. Delete apostrophes before converting if you want DontStop.

Does it keep acronyms in capitals?

No. Every word is lowercased and then given one capital, so userID becomes UserId and “parse HTML” becomes ParseHtml. Edit the result by hand if your style guide keeps acronyms uppercase.