Pi Unicode Character Code
The Unicode code point for pi is U+03C0 (π). This guide covers capital pi, the pi variants and lookalikes, how to enter each one, and how they behave when copied, searched or read aloud.
The everyday pi symbol, π, is the Unicode character U+03C0 GREEK SMALL LETTER PI. Several other characters also look like pi: the capital letter, a product sign, a variant form and mathematically styled versions. Each one has its own code point, and they are not interchangeable. This guide explains which one to use, how to enter it, and what happens when the text is copied, searched or read by assistive technology.
Quick answer: which pi character to use
For the mathematical constant in ordinary text, use U+03C0 (π). It is in the Greek block that common fonts support. Search engines and text tools handle it as a normal letter, and screen readers usually have a name for it. Use the styled or variant pi characters only when the specific glyph matters, such as in formal mathematical typesetting. Even then, check that your destination displays them. If the text must survive any system without loss, such as a plain-text field, a filename or an identifier, write the word "pi" instead.
Pi code points at a glance
| Character | Code point | Unicode name | Typical use |
| π | U+03C0 | GREEK SMALL LETTER PI | The constant pi; Greek text |
| Π | U+03A0 | GREEK CAPITAL LETTER PI | Greek text; sometimes used informally for products |
| ∏ | U+220F | N-ARY PRODUCT | The product operator in mathematics |
| ϖ | U+03D6 | GREEK PI SYMBOL | Variant pi used as a distinct symbol in some mathematics and physics |
| ℼ | U+213C | DOUBLE-STRUCK SMALL PI | Double-struck mathematical notation |
| ℿ | U+213F | DOUBLE-STRUCK CAPITAL PI | Double-struck mathematical notation |
| 𝜋 | U+1D70B | MATHEMATICAL ITALIC SMALL PI | Italic mathematical styling |
Several more styled pi characters (bold, bold italic, sans-serif bold and others) are in the Mathematical Alphanumeric Symbols block near U+1D70B. A character inspector or the Unicode code charts will give the exact code point for each one.
Encodings and escape sequences for π (U+03C0)
- Decimal code point: 960
- UTF-8 bytes: CF 80
- UTF-16 code unit: 03C0
- HTML named entity: π (capital: Π)
- HTML numeric references: π or π
- LaTeX math mode: \pi (capital: \Pi; product operator: \prod; variant: \varpi)
Python: "\u03c0" or chr(960)
JavaScript: "\u03C0" or String.fromCodePoint(0x3C0)
CSS content: content: "\03C0";
Java / C#: "\u03C0"
Characters outside the Basic Multilingual Plane, such as the mathematical italic pi U+1D70B, need a surrogate pair in UTF-16 (D835 DF0B). In UTF-8 they take four bytes. In JavaScript, write "\u{1D70B}" or use String.fromCodePoint(0x1D70B). The older \uXXXX form cannot represent the character as a single escape.
Typing pi on common systems
- macOS with the US keyboard layout: Option+P gives π. Option+Shift+P gives ∏, the product sign, not capital Greek Π.
- Microsoft Word on Windows: type 03C0 and press Alt+X to convert it to π. The same method works for other code points.
- Windows numeric keypad: Alt+227 produces π in many applications through the legacy OEM code page. Results depend on the application and system code page, and Alt+0227 produces a different character (ã). Check the output rather than assuming it worked.
- On any system, a character picker or emoji/symbol panel can search for "pi". Copying from a trusted reference also works.
What changes: a character, not a font
Picking a pi variant is a character substitution. It is not a visual effect. Each version is stored as a different code point. Text styled as "pi in a math font" by swapping π for 𝜋 contains a different character, while π shown in an italic font stays U+03C0. This difference controls how the text behaves later. A font or CSS style changes only the appearance, and the stored text keeps its meaning. A substituted character changes the data itself.
The terms "reverse" and "mirror" mostly do not apply here. π has a left-to-right directional property and no mirrored counterpart, so bidirectional display does not flip it. Reversing a string containing π leaves the character intact, because it is a single code point with no combining marks. A reversal tool that works on raw UTF-16 code units, rather than whole characters, can still break supplementary-plane variants like U+1D70B by splitting the surrogate pair.
Lookalikes that are not pi
Some characters look like pi in many fonts but mean something else. Examples include Cyrillic capital letter Pe (П, U+041F), the Coptic small letter pi (ⲡ, U+2CA1) and the product sign ∏ already described. They may look correct on screen. Search, sorting and anything else that compares exact characters treat them as unrelated. If a pasted pi does not match or search as expected, inspect its code point to see which character it is.
Copying, searching and accessibility
Copying and pasting: All of these characters are plain text, so they copy as characters and not as images or formatting. Whether they display correctly depends on the fonts at the destination. U+03C0 is widely supported. The double-struck and mathematical alphanumeric variants depend more on fonts and may show as empty boxes where no installed font covers them. No destination-specific test results were available for this guide, so check the rendering in the actual app, platform or document format you plan to use.
Search and matching: Unicode compatibility normalization (NFKC/NFKD) maps the variant pi symbol ϖ, the double-struck small pi ℼ and the mathematical italic small pi 𝜋 to plain π. Systems that apply this normalization will treat them as matches. Many systems do not normalize, and then a search for π will miss the styled forms. The product sign ∏ and capital Π do not normalize to small π.
Assistive technology: Screen readers generally announce U+03C0 by a name such as "pi". How they announce the double-struck and mathematical styled variants depends on the screen reader, its version, its settings and its pronunciation dictionaries. Some may read the full Unicode name, a different name, or nothing. No tested evidence was available here for specific screen readers. For content that must be accessible, prefer U+03C0 or the word "pi". For substantial mathematical content, use a dedicated math markup such as MathML, which carries structure that styled characters do not.
When plain text is the better choice
- Usernames, filenames, URLs and code identifiers, where non-ASCII characters may be rejected, converted or treated as confusable
- Systems with unknown or limited encoding support, such as older databases, CSV exports and SMS, where π may become a question mark or garbled bytes
- Searchable content where readers are likely to type "pi" rather than the symbol
- Accessible content where a styled variant might be read aloud incorrectly
Bottom line
U+03C0 is the right pi for almost every purpose. It keeps its meaning, it renders in common fonts, and it copies as an ordinary character. The other pi code points, including capital Π, the product sign ∏ and the styled mathematical forms, are separate characters with separate meanings. They are best kept for contexts that need them. Use the word "pi" wherever encoding support, searchability or accessibility cannot be confirmed.