Class and component names are usually PascalCase, which is fiddly to type from a plain phrase.
Paste the phrase and this converter joins the words with every one capitalised, giving you PascalCase.
How to use Pascal Case Converter
- Paste the phrase you want as a type name.
- Pascal Case Converter joins the words into PascalCase with every word capitalised.
- Copy the PascalCase name into your class or component.
Use cases
- Naming a React component from a description.
- Creating a class name from a phrase.
- Turning a feature name into a PascalCase type.
Good to know
Pascal Case Converter is camelCase with the first word capitalised too, so user profile model becomes UserProfileModel. Separators and punctuation are removed and only real words are joined. It is the conventional style for class, type and component names in many languages, and it splits existing camelCase or PascalCase before rejoining.
Frequently asked questions
How is PascalCase different from camelCase?
PascalCase capitalises the first word as well; camelCase leaves the first word lower-case.
Are punctuation and spaces removed?
Yes. Only letters and numbers are kept, then joined with each word capitalised.
How are acronyms treated?
An acronym run is treated as a single word, so HTML becomes Html; edit by hand if you need HTML.