Developer tools

PascalCase Converter

PascalCase Converter

Convert text and identifiers to PascalCase for classes, types and components.

About this tool

About PascalCase Converter

PascalCase capitalises the first letter of every word and joins them without separators: OrderSummary, PaymentGateway, UserProfileCard. It is the convention for class names in almost every object-oriented language, for types and interfaces in TypeScript, for React, Vue and Svelte component names, for C# methods and properties, and for exported identifiers in Go. Paste a sentence, a database table name like order_line_items, or a camelCase variable and the PascalCase version appears instantly. Acronyms are treated as words, so html_parser becomes HtmlParser and XMLHttpRequest becomes XmlHttpRequest, which matches the most common style guides; if your codebase keeps acronyms in capitals, adjust the few that need it by hand. Lists convert line by line, which is handy when generating a set of model or component names from a spec. The other cases sit alongside for the matching file names and variables. Your text stays in your browser.

Built and maintained by Abhi JainUpdated

How to Convert Text to PascalCase

  1. 1

    Paste names

    Paste words or identifiers into the Text box, one per line for several.

  2. 2

    Read the PascalCase result

    PascalCase is selected, so its result appears under the Text box as you type.

  3. 3

    Copy

    Use Copy or Download, or pick kebab-case from All cases for matching file names.

PascalCase Converter: questions and answers

What is PascalCase?

A naming style where every word starts with a capital letter and words are joined without spaces, like ShoppingCart. The name comes from the Pascal programming language, which popularised it.

What is the difference between PascalCase and camelCase?

Only the first letter. PascalCase starts with a capital (UserService), camelCase starts lowercase (userService). Classes and types usually use PascalCase, variables and functions camelCase.

Why must React components use PascalCase?

JSX treats a lowercase tag like <button> as a built-in HTML element and a capitalised one like <Button> as a component. A component named in lowercase would be rendered as an unknown HTML tag.

Is PascalCase the same as UpperCamelCase?

Yes. UpperCamelCase, StudlyCase and PascalCase all describe the same style.