Fraction one quarter ¼ — HTML code and how to type it

The fraction one quarter ¼ is ¼ in HTML and U+00BC in Unicode. Copy any form below, or type it with Alt + 0188 on Windows.

Updated

Character¼
HTML named entity¼
HTML decimal¼
HTML hex¼
UnicodeU+00BC
CSS content"\00BC"
JavaScript"\u00BC"
URL encoded%C2%BC
UTF-8 bytesC2 BC

When to use it

A precomposed fraction for one quarter.

In HTML, CSS and JavaScript

<p>&frac14;</p>           <!-- or the character itself in a UTF-8 page -->

.note::before { content: "\00BC"; }

const s = "\u00BC";

In a page saved as UTF-8 (the default today) you can paste the character directly; the entity is only needed when it must survive a non-UTF-8 system. Encode or decode whole texts with the HTML Entity Encoder.

How to type fraction one quarter

  • Windows: hold Alt and type 0188 on the numeric keypad.
  • Mac: press Ctrl + Cmd + Space and search for “fraction one quarter”.
  • Linux: Ctrl + Shift + U, then BC and Enter.
HTML Entity EncoderEscape < > & " so text is safe to show in HTML, convert accents and symbols to named or numeric entities, or decode entity-filled HTML back to plain text.
Open the tool

Frequently asked questions

What is the HTML code for the fraction one quarter?
&frac14; (named), &#188; (decimal) or &#xBC; (hex). All three produce the same character.
What is the Unicode for the fraction one quarter?
U+00BC. In CSS write "\00BC" and in JavaScript "\u00BC".
How do I type the fraction one quarter on a keyboard?
On Windows hold Alt and type 0188 on the numpad. On a Mac use Ctrl + Cmd + Space and search for it.