Greek Small Pi HTML entity π

π is the HTML entity for Greek Small Pi π (U+03C0). Copy the decimal π and hex π codes plus CSS, JavaScript, Python and URL escapes.

Entity
π
Code point
U+03C0
Unicode name
GREEK SMALL LETTER PI
Block
Greek and Coptic
Category
Lowercase letter (Ll)
Since
Unicode 1.1
Defined in
HTML 4.01 and HTML5

Codes to copy

HTML namedπWorks in HTML; in XML only & < > " ' are predefined.
HTML decimalπWorks in HTML and XML.
HTML hexπWorks in HTML and XML.
CSScontent: "\3C0";In a stylesheet, for ::before and ::after.
JavaScript"\u03C0"Also valid in JSON.
Python"\u03c0"Python 3 string literal.
Python by name"\N{GREEK SMALL LETTER PI}"Readable alternative using the Unicode name.
URL%CF%80Percent-encoded UTF-8 bytes, for a path or query value.
UTF-8 bytesCF 802 bytes.
UTF-1603C01 code unit, which is what JavaScript length counts.

When to use it

The Greek small letter pi, used for the circle constant. The capital Π is a different character, and for the product sign in maths there is the dedicated ∏.

The name dates from HTML 4, so it works in every browser and in old email clients.

More greek letters

All greek letters · Every HTML entity · Encode or decode text

Source: the WHATWG HTML Standard list of named character references and the Unicode Character Database (Unicode 18.0).