Shapes & Bullets

Alt+254
Black Square ■

Hold Alt and type 254 on the numeric keypad to get the black square symbol.

At a glance
Symbol
Alt code
Code page
CP437 (classic)
HTML
Unicode
Word

How to type Alt+254

  1. Make sure Num Lock is on.
  2. Hold down the Alt key.
  3. Type 254 on the numeric keypad. The number row above the letters will not work.
  4. Release Alt. The black square symbol ■ appears.

Alt+254 is a classic code from the CP437 table used by the original IBM PC, which is why there is no leading zero. This symbol does not exist on the Windows-1252 table, so the classic code is the only Alt code for it.

On a laptop without a numpad

Press Win+. to open the emoji panel, pick the Symbols tab and search for "black square". Or open Character Map from the Start menu. In Microsoft Word you can type 25A0 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 "black square" and double-click it.

In HTML and code

Use ▪ in HTML, "\25A0" in CSS and "\u25A0" in JavaScript. See the Black Square Symbol guide for every platform.

Frequently asked questions

What does Alt+254 type?+

Alt+254 types the black square symbol, ■ (Unicode U+25A0). Hold Alt, type 254 on the numeric keypad, then release Alt.

Why do I need the code without a zero?+

Alt+254 is a classic CP437 code from the original IBM PC character set. It has no leading zero.

Alt+254 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 "black square", and double-click the symbol, or copy it from this page.

✓ Copied to clipboard