Search
Search for a symbol or emoji...
■
■
Black Square Symbol ■
Black Square Symbol Information
| Symbol Name | Black Square |
| Unicode Version | 1.1 (June 1993) |
| Unicode | U+25A0 |
| CSS Code | \25A0 |
| Hex Code | ■ |
| HTML Code | ■ |
| Latex | \ding{110} |
| Symbol | ■ |
Black Square Symbol Encoding
| UTF-8 | 0xE2 0x96 0xA0 |
| UTF-16 | 0x25A0 |
| UTF-32 | 0x000025A0 |
Black Square Symbol in Latex
Black Square
1\documentclass{article}
2\usepackage{pifont}
3\begin{document}
4\ding{110}
5\end{document}How to add black square symbol via keyboard on different Operating systems
You can type the black square symbol on most modern devices with the help of following methods:
How to type black square symbol on Microsoft Word
You can type the black square in Microsoft Word using steps mentioned below:
- Place your cursor in the text area where you need to insert the symbol and type 25A0
- Without moving the cursor press keys Alt + x together
- The original 25A0 is now transformed into ■
How to type black square symbol on Microsoft Windows
You can type the black square on Microsoft windows using following steps:
- Hold Alt and press to type black square on your windows machine.
How to type black square symbol on Mac OS
You can type the black square on Mac OS using following steps:
- Place your cursor in the text area where you need to insert the symbol
- Press Ctrl + ⌘ Command + ⎵ Space to bring up the Character Viewer. Alternatively, choose Edit ⇒ Emoji & Symbols
- Type "Black Square" in the search field at the top and press Enter
- The symbol should appear. Click on it to insert it into your text


How to type black square symbol on Linux
You can type the black square on Linux using following steps:
- Place your cursor in the text area where you need to insert the symbol
- Hold ⇧ Shift + Ctrl and press the letter + U
- Press keys 25A0 consecutively
- And then press ↵ Enter , the desired symbol will be added to your document
How to type black square symbol on IOS and Android
The easiest way to type the black square symbol on ios and android is to copy and paste it wherever you need it.
How to use black square in CSS
//CSS Example
1span {
2 content: \25A0;
3 }How to use black square in HTML
//HTML Example
1<span>■</span>Black Square symbol representation in programming languages
Black Squaresymbol's representation in different programming languages can be found in table below:
| Language | Representation |
|---|---|
| Rust | \u{25A0} |
| Ruby | \u{25A0} |
| Python | \u25A0 |
| PHP | \u{25A0} |
| Perl | \x{25A0} |
| Java | \u25A0 |
| Modern JavaScript - Since ES6 | \u{25A0} |
| JavaScript | \u25A0 |
| Go | \u25A0 |
| C# | \u25A0 |
| C and C++ | \u25A0 |
| Bash and Zsh - inside echo -e | \u25A0 |
| RFC 5137 | \u'25A0' |
