About Pascal Case Converter
Class names in C# and Java, React components and TypeScript types are written in PascalCase: every word starts with a capital and nothing separates them. Paste "user profile card" or user_profile_card and get UserProfileCard.
Every line is treated as one name, so a list of entities becomes a list of type names in one go. Word breaks are found at spaces, punctuation, underscores, hyphens and existing changes from small to capital letters.
How it works
- For writing styles, the text is recased in place: spacing, punctuation and line breaks are untouched.
- For programming styles, each line is split into words at spaces, punctuation and existing capital-letter boundaries, then rejoined in the chosen convention.
- Title Case keeps short joining words such as "of", "and" and "the" lowercase unless they start or end the line.
Questions
What is the difference from camelCase?
Only the first letter. PascalCase capitalises the first word as well (UserProfile), camelCase keeps it small (userProfile). Switch with the Convert to menu if you need the other one.
Why did "XMLParser" become XmlParser?
Each word is rebuilt as one capital followed by lowercase letters, and a run of capitals is read as one word. That gives the consistent form many style guides prefer; restore the acronym by hand if yours does not.
Are digits kept?
Yes. Digits are kept in place, so "version 2 api" becomes Version2Api. A name that starts with a digit is not valid in most languages, so check those lines.
Everything you enter here is processed in this browser tab. Nothing is uploaded, logged or shared. How privacy works here.