Convert to PascalCase

Create PascalCase identifiers used for class names and components in C#, Java and TypeScript.

Convert any text to PascalCase for class names, components and types. Free developer tool.

Convert to PascalCase examples

InputOutput
order total priceOrderTotalPrice

How the convert to pascalcase works

  1. Split into words at any separator.
  2. Capitalise every word.
  3. Join without separators.

Rules and edge cases

  • Every word is capitalised and separators are removed, producing one PascalCase token.
  • Input in any convention — spaces, snake_case, kebab-case or camelCase — is split correctly first.
  • Digits stay attached to the preceding word.
  • camelCase differs only in the lowercase first word.

Frequently asked questions

Do React component names have to be PascalCase?

Yes. JSX treats lowercase names as HTML elements, so a component must start with a capital letter to be rendered as a component.

Can I convert a list of database tables to class names?

Paste one table name per line; user_accounts becomes UserAccounts, ready to use as a model class.