One Quarter Fraction HTML entity ¼

¼ is the HTML entity for One Quarter Fraction ¼ (U+00BC). Copy the decimal ¼ and hex ¼ codes plus CSS, JavaScript, Python and URL escapes.

Entity
¼
Legacy form
&frac14 (no semicolon)
Code point
U+00BC
Unicode name
VULGAR FRACTION ONE QUARTER
Block
Latin-1 Supplement
Category
Other number (No)
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: "\BC";In a stylesheet, for ::before and ::after.
JavaScript"\u00BC"Also valid in JSON.
Python"\u00bc"Python 3 string literal.
Python by name"\N{VULGAR FRACTION ONE QUARTER}"Readable alternative using the Unicode name.
URL%C2%BCPercent-encoded UTF-8 bytes, for a path or query value.
UTF-8 bytesC2 BC2 bytes.
UTF-1600BC1 code unit, which is what JavaScript length counts.

When to use it

A single character for one quarter, from Latin-1 and HTML 4. Fractions without a character of their own can be set with <sup>1</sup>&frasl;<sub>8</sub> or written as 0.125.

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

Browsers also accept the legacy form &frac14 without a semicolon, for compatibility with old pages; new HTML should always end the reference with a semicolon.

More letterlike symbols, numbers and fractions

All letterlike symbols, numbers and fractions · 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).