½

Unicode character Fraction One Half

About this character

The character ½ is known as Unicode character Fraction One Half and carries the Unicode code point U+00BD, which is 189 in decimal. It belongs to the Latin-1 Supplement block (U+0080–U+00FF), which gathers the accented letters of Western European languages along with the punctuation and symbols inherited from ISO 8859-1.

In memory, ½ takes 2 bytes in UTF-8 (0xC2 0xBD) and 1 in UTF-16 (0x00BD). That difference is why badly configured forms or databases garble this character: they assume one byte per character.

How to type ½

System What to do
Windows On Windows, hold Alt and type 189 on the numeric keypad. In Word or WordPad, type 00BD and press Alt + X to turn the code into the character.
macOS On a Mac, open the Character Viewer with Ctrl + ⌘ + Space and search for “Unicode character Fraction One Half”.
Linux On Linux (GTK), type Ctrl + ⇧ + U, 00BD then press Enter.
HTML / Web In an HTML page, write ½. Use \00BD in CSS, \u00BD in JavaScript and \u00BD in Python.
On this site The simplest route is the Copy button above: the character goes straight to your clipboard, ready to paste anywhere.

Keyboards that include ½

This character sits directly on the following ClavierVirtuel layouts, where you can click it with the mouse:

Codes and encodings

Property Value
Code pointU+00BD
Unicode blockLatin-1 Supplement (U+0080–U+00FF)
Decimal189
Hexadecimal0x00BD
Octal0275
Binary10111101
UTF-8 bytes0xC2 0xBD
UTF-16 units0x00BD
Named HTML entity½
Decimal HTML entity½
Hex HTML entity½
CSS escape\00BD
JavaScript escape\u00BD
Python escape\u00BD
URL encoding%C2%BD

Frequently asked questions

What is the Unicode code for ½?

Its code point is U+00BD, which is 189 in decimal and 0275 in octal. In HTML you can write it as ½ or ½.

Why does ½ show up as a box or a question mark?

An empty box means the font has no glyph for U+00BD. The character is still in the text: switching to a font that covers the block (Noto, DejaVu or Segoe UI Symbol) makes it appear.

Can I use ½ in a filename, a URL or a password?

In a URL it must be encoded as %C2%BD. Modern filesystems accept it, though it is still risky when moving files between systems. For passwords, some forms reject non-ASCII characters outright.

Characters from the same block

¦ ¤ ² ® ¹