TC

PascalCase Converter

Turn any text into PascalCase names for classes, types and components. Paste a list and every line is converted.

Characters: 0
Words: 0
Lines: 0
Reading time: 0 min

Keyboard shortcuts: Ctrl/⌘+B to copy • Ctrl/⌘+S to download • Ctrl/⌘+Backspace to clear

What is PascalCase?

PascalCase, also called upper camel case, joins words without spaces and starts every word with a capital letter, including the first one. The name comes from the Pascal programming language.

Example

Before

user profile card
invoice_line_item
payment-service

After

UserProfileCard
InvoiceLineItem
PaymentService

When to use PascalCase

Use it for class names in C#, Java, PHP and TypeScript, React and Vue component names, and type or interface names. Variables and functions usually use camelCase.

How to convert text to PascalCase

  1. 1

    Paste or type your text in the box above. Pasted text is converted to PascalCase automatically.

  2. 2

    Need another format? Click any button to switch, as many times as you like.

  3. 3

    Copy the result with the Copy button (Ctrl/⌘+B) or download it as a .txt file (Ctrl/⌘+S).

Frequently Asked Questions

Yes, they are two names for the same convention.

A run of capitals followed by a word is split, so XMLParser becomes XmlParser. This is the style recommended by most modern guides.

Yes. Put one name per line: each line is converted separately and the line breaks are kept.