formersi
U+03C0π

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 π
Code point
U+03C0
decimal 960
Windows
Alt + 227
Alt + numpad
Mac
Option + P
U.S. / ABC layout
Added
Unicode 1.1
Lowercase letter

Every way to type π

Only methods that exist on that system are shown as shortcuts.

Windows Alt code

Alt+227 (older OEM code)
  1. Turn on Num Lock.
  2. Hold Alt and type the digits on the numeric keypad (not the top row).
  3. Let go of Alt.
Step-by-step guide

Mac Option key

⌥ Option+P

U.S. and ABC keyboard layouts. Hold the keys together.

Step-by-step guide

Microsoft Word Alt + X

03C0thenAlt+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

Ctrl+Shift+Uthen03c0thenEnter

GNOME and most GTK apps (IBus).

Chromebook Unicode input

Ctrl+Shift+Uthen03c0thenEnter

Type the code after the underlined u appears.

How π is stored in UTF-8

2 bytes (16 bits) for 1 code point

length and continuation bitsbits of the code point
Computed from U+03C0 with the UTF-8 rules of RFC 3629. Same bytes as text: see “Codes” below.

Codes

For HTML, CSS, JavaScript, JSON, Python and URLs.

HTML entity&pi;
UnicodeU+03C0
HTML decimal&#960;
HTML hex&#x03C0;
CSS content\03C0
JavaScript\u03C0
JSON\u03c0
Python\u03c0
UTF-8 bytesCF 80
UTF-1603C0
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.

Related symbols

Look-alikes named in the Unicode notes first, then neighbours in the same block.

SymbolNameCodeAlt code
ρRhoU+03C1–
οOmicronU+03BF–
ςFinal sigmaU+03C2–
ξXiU+03BE–
σSigmaU+03C3Alt + 229
νNuU+03BD–

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 &pi; or &#960; (decimal) or &#x3C0; (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.