How to type Alt+0166
- Make sure Num Lock is on.
- Hold down the Alt key.
- Type 0166 on the numeric keypad. The number row above the letters will not work.
- Release Alt. The broken bar symbol ¦ appears.
The leading zero matters. Alt+0166 uses the Windows-1252 code page. Without the zero, Windows reads the older CP437 table and Alt+166 types a different character.
On a laptop without a numpad
Press Win+. to open the emoji panel, pick the Symbols tab and search for "broken bar". Or open Character Map from the Start menu. In Microsoft Word you can type 00A6 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 "broken bar" and double-click it.
In HTML and code
Use ¦ in HTML, "\00A6" in CSS and "\u00A6" in JavaScript. See the Broken Bar guide for every platform.
Frequently asked questions
What does Alt+0166 type?+
Alt+0166 types the broken bar symbol, ¦ (Unicode U+00A6). Hold Alt, type 0166 on the numeric keypad, then release Alt.
Why do I need the leading zero?+
Alt+0166 uses the Windows-1252 code page, which is selected by the leading zero. Without the zero, Windows reads the CP437 table and may type a different character.
Alt+0166 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 "broken bar", and double-click the symbol, or copy it from this page.