Black square
■ is the Unicode character “BLACK SQUARE” (U+25A0). It belongs to the Geometric Shapes block and was added in Unicode 1.1. Click it to copy, or use the codes below.
■ codes
| UnicodeCode point | U+25A0 |
|
|---|---|---|
| HTML codeDecimal, works in any HTML page | ■ |
|
| HTML hexHexadecimal HTML code | ■ |
|
| CSSFor the CSS content property | \25A0 |
|
| JavaScriptEscape in JavaScript strings | \u25A0 |
|
| PythonEscape in Python strings | \u25A0 |
|
| URL encodedPercent-encoded UTF-8 | %E2%96%A0 |
|
| UTF-8Bytes in UTF-8 | E2 96 A0 |
|
| UTF-16Code units in UTF-16 | 25A0 |
|
| Alt codeWindows, number pad | Alt + 254 |
How to type ■
Copy and paste
Click to copy it, then paste with Ctrl + V (⌘ + V on a Mac) or a long press on phones.
Windows
Hold Alt and type 254 on the number pad (Num Lock on), then let go of Alt.
In Microsoft Word, type 25A0 and press Alt + X.
Mac
Press Control + ⌘ + Space to open the Character Viewer, then search for “black square”.
iPhone and Android
Copy it here and paste it. To type it again later, save it as a text replacement (iPhone: Settings › General › Keyboard › Text Replacement; Gboard: Settings › Dictionary › Personal dictionary).
About ■
- Unicode name
- BLACK SQUARE
- Code point
- U+25A0 (9632)
- Block
- Geometric Shapes
- Category
- Other Symbol
- Unicode version
- 1.1