More
More
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. | |
| CSS | content: "\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 bytes | CF 802 bytes. | |
| UTF-16 | 03C01 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
ςGreek Small Letter Final SigmaξGreek Small Letter XiσGreek Small Letter SigmaνGreek Small Letter NuτGreek Small Letter TauμGreek Small MuυGreek Small Letter UpsilonλGreek Small Letter Lamda
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).