How to Type the White Square

Click the button to copy the White Square.

White Square Codes

Symbol
UnicodeU+25A1
HTML named entity□
HTML decimal□
HTML hexadecimal□
CSS escape\25A1
JavaScript escape\u25A1
Windows Alt codeNo dependable legacy Alt code

How to Type □ on Windows

For a one-time use, the copy button is the fastest and most reliable choice. When the Alt code listed above is available, turn on Num Lock, hold Alt, enter the digits on the numeric keypad, and release Alt. The number row above the letters does not normally work for legacy Alt codes.

In Microsoft Word and several Office applications, type 25A1 and press Alt + X. Word converts the hexadecimal Unicode value into □. Press Alt + X again to switch it back to the code.

How to Type □ on a Mac

Open Character Viewer with Control + Command + Space, search for White Square, and select the character. Some common symbols also have direct Option-key shortcuts, but Character Viewer is more consistent across keyboard layouts.

Chromebook, Linux, iPhone, and Android

On a Chromebook, press Ctrl + Shift + U, enter 25a1, and press Enter. Many Linux applications use the same Unicode entry sequence. On phones and tablets, hold a related key to check for alternate characters; when the symbol is not offered, copy it from this page and paste it into the destination app.

Using □ in HTML and CSS

UTF-8 pages can usually include the symbol directly. The named or numeric HTML references above are useful when source code clarity or encoding compatibility matters. In CSS generated content, use the CSS escape shown in the table, followed by a space when another hexadecimal character immediately follows it.