Greek Small Letter Phi HTML entity φ

φ is the HTML entity for Greek Small Letter Phi φ (U+03C6). Copy the decimal φ and hex φ codes plus CSS, JavaScript, Python and URL escapes.

Entity
φ
Code point
U+03C6
Unicode name
GREEK SMALL LETTER PHI
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: "\3C6";In a stylesheet, for ::before and ::after.
JavaScript"\u03C6"Also valid in JSON.
Python"\u03c6"Python 3 string literal.
Python by name"\N{GREEK SMALL LETTER PHI}"Readable alternative using the Unicode name.
URL%CF%86Percent-encoded UTF-8 bytes, for a path or query value.
UTF-8 bytesCF 862 bytes.
UTF-1603C61 code unit, which is what JavaScript length counts.

When to use it

φ writes U+03C6 (Greek Small Letter Phi), a small letter from the Unicode Greek and Coptic block, encoded since Unicode 1.1. In mathematics, single Greek letters are usually set in italic; MathML or a maths font handles that automatically.

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).