U+03C0 · Greek and Coptic
Pi (π): how to type it
Copy π with one click, or type it with Alt + 227 on Windows or Option + P on a Mac.
- WindowsAlt+227 numeric keypad
- Mac⌥ Option+P
- Word03C0thenAlt+X
- iPhoneNo long-press for it. Copy it here.
- HTML
πorπ
Every way to type π
Only methods that exist on that system are shown as shortcuts.
Windows Alt code
- Turn on Num Lock.
- Hold Alt and type the digits on the numeric keypad (not the top row).
- Let go of Alt.
Microsoft Word Alt + X
Type 03C0, then press Alt + X (Word for Windows).
Google Docs menu
Insert › Special characters, then search “greek small letter pi”, or paste it from here.
iPhone and iPad copy
Not on a long-press of the default keyboard. Copy it here, or add a Text Replacement (Settings › General › Keyboard › Text Replacement).
Android symbol pages
Gboard keeps many common symbols on its symbol pages (tap ?123, then =\<). If it is not there, copy it here, or save it in Gboard’s Personal dictionary with a shortcut.
Linux Unicode input
GNOME and most GTK apps (IBus).
Chromebook Unicode input
Type the code after the underlined u appears.
How π is stored in UTF-8
2 bytes (16 bits) for 1 code point
Codes
For HTML, CSS, JavaScript, JSON, Python and URLs.
| HTML entity | π | |
|---|---|---|
| Unicode | U+03C0 | |
| HTML decimal | π | |
| HTML hex | π | |
| CSS content | \03C0 | |
| JavaScript | \u03C0 | |
| JSON | \u03c0 | |
| Python | \u03c0 | |
| UTF-8 bytes | CF 80 | |
| UTF-16 | 03C0 | |
| URL encoded | %CF%80 | |
| Python name | \N{GREEK SMALL LETTER PI} | |
| LaTeX | \pi |
From the Unicode Standard
Names, aliases and notes from the Unicode 13.0 names list.
- Unicode name GREEK SMALL LETTER PI
- Category Lowercase letter (Ll)
- Block Greek and Coptic
- Note math constant 3.141592...
- Capital Π Capital pi
Related symbols
Look-alikes named in the Unicode notes first, then neighbours in the same block.
Questions
What is the Alt code for Pi (π)?
Hold Alt and type 227 on the numeric keypad, then let go of Alt.
How do I type π on a Mac?
Option + P on the U.S. or ABC keyboard layout.
What is the HTML code for π?
Use π or π (decimal) or π (hex).
Sources: Unicode Character Database 13.0 and Unicode emoji 13.0 (Unicode, Inc.); Alt codes computed from code pages 437 and 1252; Mac keys from the Apple U.S. keyboard layout. How this page is made.