How to convert to PascalCase
- Paste one name per line into the top box.
- The PascalCase result appears in the bottom box immediately.
- Click Copy result and drop it into your project.
Examples
| Input | PascalCase |
|---|---|
| user profile card | UserProfileCard |
| order_line_item | OrderLineItem |
| navBar | NavBar |
| api-response-handler | ApiResponseHandler |
Where PascalCase is the standard
- Class names in nearly every language: Java, C#, Python, PHP, TypeScript, Swift and more.
- React, Vue and Svelte components, for example
<LoginForm />. React requires components to start with a capital letter. - C# and .NET methods, properties and namespaces.
- Type names and interfaces in TypeScript, Go (for exported names) and Rust.
Tips for good names
Keep class names as nouns that describe what the thing is, like InvoiceRepository rather than HandleInvoices. Avoid long chains of words when two or three will do. If your team writes acronyms in full capitals (HTTPClient instead of HttpClient), adjust the result by hand, since this converter follows the more common style of treating acronyms as normal words.
For variables and functions, you probably want camelCase instead.