PascalCase, sometimes called UpperCamelCase, is the conventional way to name classes, types, and components. This converter rewrites any phrase or differently-cased identifier into PascalCase, removing separators and capitalising every word, including the first.
How it works
The input is split into a list of lowercase word tokens, then each token is capitalised and the tokens are concatenated with no separator:
"user profile id" -> UserProfileId
"user_profile_id" -> UserProfileId
"userProfileId" -> UserProfileId
"open-api-spec" -> OpenApiSpec
Word boundaries come from separators (spaces, underscores, hyphens, dots) as well as case transitions inside existing camelCase or PascalCase input, so the result is stable no matter how the source was formatted.
Tips and notes
Because acronyms are folded to a single capital, parseJSON becomes
ParseJson. Restore the exact casing you need after copying if your codebase
keeps acronyms uppercase. Letters and digits are also separated during
tokenisation, which keeps the output predictable; rejoin a version segment
manually if you prefer it glued to the preceding word.