Pascal Case Converter – Convert Text to PascalCase Online | WordTweek
Free online text tool

Pascal Case

Pascal case capitalizes the first letter of every word and removes the spaces, so Kyle likes to learn how to code becomes KyleLikesToLearnHowToCode. This casing is commonly used in coding for class and type names. Paste your text, then copy the result. It is free and runs in your browser.

Pascal casing example

Before

Kyle likes to learn how to code

After

KyleLikesToLearnHowToCode

Before

user_profile-page id

After

UserProfilePageId

Before

HTML parser for API v2

After

HtmlParserForApiV2

How to convert text to Pascal case

  1. Enter your text. Type, paste or import a .txt file. Each line is converted on its own.
  2. Check the result. The Pascal case version updates as you type.
  3. Copy it. Press Copy result and paste it into your code or document.

Where Pascal case is used

Class and type names

Standard for classes, structs, interfaces and enums in C#, Java, TypeScript and Go.

Components

React and other UI components are named in Pascal case, such as UserProfilePage.

Namespaces and files

Used for namespaces, project names and many file names in .NET and similar ecosystems.

Pascal case vs other naming styles

StyleExampleTypical use
Pascal caseUserProfilePageClass names in C#, Java, TypeScript, Go
Camel caseuserProfilePageVariables and functions in JavaScript, Java
Snake caseuser_profile_pagePython, Ruby, database columns
Kebab caseuser-profile-pageURLs, CSS classes, file names
Title caseUser Profile PageHeadings and titles for readers

Pascal case and camel case differ only in the first letter: Pascal starts with a capital, camel starts with a lowercase letter.

Frequently asked questions

What is Pascal case?

Pascal case is a way of writing words together with no spaces, where the first letter of every word is a capital, for example KyleLikesToLearnHowToCode. It is also called upper camel case.

How do I convert text to Pascal case?

Type or paste your text into the input box. The Pascal case version appears instantly in the result box. Press Copy result and paste it into your code or document.

What is the difference between Pascal case and camel case?

Pascal case capitalizes the first letter of every word, including the first, as in UserProfilePage. Camel case starts with a lowercase letter, as in userProfilePage.

Where is Pascal case used?

It is commonly used for class names, types, interfaces, components and namespaces in languages such as C#, Java, TypeScript, Go and Pascal, and for React component names.

What happens to spaces, hyphens and punctuation?

Spaces, hyphens, underscores and punctuation are treated as word breaks and removed. Letters and numbers are kept, so user_profile-page id becomes UserProfilePageId.

What happens to words that are already capitalized?

By default each word is lowercased after its first letter, so HTML parser becomes HtmlParser. Tick Keep other letters as typed to preserve existing capitals, giving HTMLParser.

Does it convert each line separately?

Yes. Every line becomes its own Pascal case word, so you can convert a whole list of names at once.

Is the tool free and private?

Yes. It is free, needs no account, and runs in your browser, so the text you enter is not uploaded to a server.

Share this tool

Bookmark this page: press Ctrl+D (Windows) or Cmd+D (Mac).

Last updated: November 2026 · Free · No sign-up · Runs in your browser

Copied!