Black Square
The black square (■) sits at code point U+25A0 in Unicode. It belongs to the corners family and pastes as plain text, so it keeps working across documents, messages and web pages. Below you can copy it in one click and grab the exact HTML, CSS and JavaScript codes you need to reproduce it anywhere.
| Symbol | ■ | |
|---|---|---|
| Unicode | U+25A0 | |
| Name | Black Square | |
| HTML (decimal) | ■ | |
| HTML (hex) | ■ | |
| CSS content | \25A0 | |
| JavaScript / JSON | \u25A0 | |
| UTF-8 bytes | 0xE2 0x96 0xA0 | |
| UTF-16 units | 0x25A0 |
How to type the black square symbol
- Copy and paste: click the ■ at the top of this page, then paste with Ctrl+V (Windows) or Cmd+V (Mac). This is the fastest route on any device.
- HTML: write
■in your markup. - CSS: use
content: "\25A0"in a::beforeor::afterrule. - JavaScript: the escape
\u25A0produces this character in a string.
Frequently asked questions
How do I copy the black square symbol?
Click the ■ above or the copy button and it is placed on your clipboard. Paste it anywhere with Ctrl+V or Cmd+V. It is a real text character, so it works in documents, chats and code.
What is the Unicode code point for black square?
The black square has the Unicode code point U+25A0. In HTML you can write it as ■ or ■.
Is the black square an emoji or a text character?
It is a plain Unicode text character, not an image or an emoji sticker. That means the ■ inherits the surrounding font, size and color wherever you paste it, and it works in places emoji often do not, such as usernames, file names and code.
Related symbols
Browse the full corner & geometric symbols hub, or return to the searchable symbol grid.