Pi Symbol codes and values
| Format | Value |
|---|---|
| Unicode | U+03C0 |
| HTML (decimal) | π |
| HTML (hex) | π |
| HTML entity | π |
| CSS | \03C0 |
| JavaScript | \u03C0 |
| Windows Alt code | Alt+227 |
The official Unicode name is "Greek Small Letter Pi".
How to type the pi symbol
Windows
- Hold Alt and type
227on the numeric keypad, then release. (Num Lock must be on.) - In Microsoft Word, type
03C0and press Alt + X to turn the code into π. - Or press Win + . to open the emoji and symbol panel and search for it.
Mac
- Press Control + Command + Space to open the Character Viewer and search for "greek small letter pi".
- Or add the "Unicode Hex Input" keyboard in System Settings, hold Option and type
03C0.
Linux
- In GTK apps press Ctrl + Shift + U, type
03c0and press Enter.
Web pages
Write π or π in HTML, or paste the character directly into a UTF-8 page.
Encoding details
| Encoding | Value |
|---|---|
| Code point | U+03C0 (decimal 960) |
| UTF-8 bytes | CF 80 |
| URL encoded | %CF%80 |
| Category | Ll |
What the pi symbol means
Pi represents the constant ratio of a circle's circumference to its diameter. It is an irrational number essential to geometry, trigonometry, physics, and engineering calculations involving circular or periodic phenomena.
Using the pi symbol well
Insert the Greek letter using Unicode U+03C0 or the HTML entity π. Ensure your text editor saves files in UTF-8 so the character survives transfers between different operating systems.
Characters next to it in Unicode
| Character | Code | Name |
|---|---|---|
| ν | U+03BD | Greek Small Letter Nu |
| ξ | U+03BE | Greek Small Letter Xi |
| ο | U+03BF | Greek Small Letter Omicron |
| ρ | U+03C1 | Greek Small Letter Rho |
| ς | U+03C2 | Greek Small Letter Final Sigma |
| σ | U+03C3 | Greek Small Letter Sigma |
FAQ
What is the Unicode for the pi symbol?
The pi symbol π is U+03C0 (Greek Small Letter Pi).
How do I type π on a keyboard?
On Windows hold Alt and type 227 on the numeric keypad. On Mac use the Character Viewer (Control + Command + Space), and on Linux use Ctrl + Shift + U then 03c0.
What is the HTML code for π?
Use π or the named entity π. The hexadecimal form is π.
More symbols
- √ Square Root Symbol: previous page
- £ Pound Sign: next page
- Symbols to copy and paste: the full list