PascalCase Converter
Convert text, snake_case or kebab-case to PascalCase (UpperCamelCase) for class, type and component names. Handles acronyms and numbers line by line.
Example: user account id → UserAccountId
Each line is converted separately. Words are split at spaces, punctuation, _ - . / and camelCase boundaries; acronyms such as XML stay together and digits stay attached to the previous word.
Related Tools
View AllWhat is PascalCase?
This tool converts identifiers and phrases to PascalCase (UpperCamelCase): every word starts with a capital letter and words are joined without separators – the usual style for classes, types, enums and React components.
How to use PascalCase
- Type or paste text into the Input box – one identifier or phrase per line (or click Load sample).
- The converted text appears instantly in the Output box.
- Click Copy to copy the result.
Example
hello-world foo
HelloWorldFoo
When to use PascalCase
Use it to name classes, TypeScript types, C# members or React components. For variables and functions in JavaScript use camelCase.
How PascalCase works
The input is split into words, each word is capitalised (first letter upper, rest lower) and the words are joined without separators. Words are split at spaces, punctuation and the separators _ - . /, and at case changes inside identifiers: fooBar → foo + Bar, and an acronym run is kept together (XMLHttpRequest → XML + Http + Request). Digits stay attached to the word before them (Request2Go → Request2 + Go), apostrophes inside words are dropped (don't → dont), and letters of any script (é, ñ, Cyrillic, Greek…) are supported. Every line is converted separately.
Common Use Cases
- Creating React component names from descriptions
- Converting table names to ORM model class names
- Naming TypeScript interfaces
- Converting kebab-case file names to class names
Security Note
Everything runs locally in your browser; the code you paste is not uploaded.
FAQs
What is the difference from camelCase?
PascalCase capitalises the first word too: userId vs UserId.
What happens to acronyms?
They are capitalised as words: HTTP server → HttpServer.
Are spaces removed?
Yes, all separators are removed.