Pi

π is the Unicode character “GREEK SMALL LETTER PI” (U+03C0). It is also known as pi. It belongs to the Greek And Coptic block and was added in Unicode 1.1. Click it to copy, or use the codes below.

π codes

UnicodeCode point U+03C0
HTML codeDecimal, works in any HTML page π
HTML hexHexadecimal HTML code π
HTML entityNamed HTML entity π
CSSFor the CSS content property \03C0
JavaScriptEscape in JavaScript strings \u03C0
PythonEscape in Python strings \u03C0
URL encodedPercent-encoded UTF-8 %CF%80
UTF-8Bytes in UTF-8 CF 80
UTF-16Code units in UTF-16 03C0
Alt codeWindows, number pad Alt + 227

How to type π

Copy and paste

Click to copy it, then paste with Ctrl + V (⌘ + V on a Mac) or a long press on phones.

Windows

Hold Alt and type 227 on the number pad (Num Lock on), then let go of Alt.

In Microsoft Word, type 03C0 and press Alt + X.

Mac

Press Option + P.

Or open the Character Viewer with Control + ⌘ + Space.

iPhone and Android

Copy it here and paste it. To type it again later, save it as a text replacement (iPhone: Settings › General › Keyboard › Text Replacement; Gboard: Settings › Dictionary › Personal dictionary).

HTML and CSS

Unicode U+03C0. Every format is on the pi page.

About π

Unicode name
GREEK SMALL LETTER PI
Code point
U+03C0 (960)
Block
Greek And Coptic
Category
Lowercase Letter
Unicode version
1.1
Mac shortcut
Option + P