How to type Alt+171
- Make sure Num Lock is on.
- Hold down the Alt key.
- Type 171 on the numeric keypad. The number row above the letters will not work.
- Release Alt. The one half symbol ½ appears.
Alt+171 is a classic code from the CP437 table used by the original IBM PC, which is why there is no leading zero. The same symbol is also available as Alt+0189 on the Windows-1252 table.
On a laptop without a numpad
Press Win+. to open the emoji panel, pick the Symbols tab and search for "one half". Or open Character Map from the Start menu. In Microsoft Word you can type 00BD followed by Alt+X. Some laptops have a hidden numpad on the J, K, L, U, I and O keys that activates with Fn.
On a Mac
Alt codes do not exist on macOS and this symbol has no dedicated shortcut. Open the Character Viewer with Control+⌘+Space, search for "one half" and double-click it.
In HTML and code
Use ½ in HTML, "\00BD" in CSS and "\u00BD" in JavaScript. See the One Half Symbol guide for every platform.
Frequently asked questions
What does Alt+171 type?+
Alt+171 types the one half symbol, ½ (Unicode U+00BD). Hold Alt, type 171 on the numeric keypad, then release Alt.
Why do I need the code without a zero?+
Alt+171 is a classic CP437 code from the original IBM PC character set. It has no leading zero. The same symbol can also be typed as Alt+0189 on the Windows-1252 table.
Alt+171 does not work. Why?+
Check that Num Lock is on and that you are using the numeric keypad rather than the number row. Laptops without a numpad cannot enter Alt codes: use Win + . for the symbol panel, Character Map, or copy the symbol from this page.
How do I type ½ on a Mac?+
Alt codes do not work on macOS. Open the Character Viewer with Control + Command + Space, search for "one half", and double-click the symbol, or copy it from this page.