U+25A0

Black square

Black square is a monochrome text character from the Unicode Geometric Shapes block, listed here under Shapes and Box Drawing & Blocks. Copy it with one click, or use the hex, octal, decimal and HTML entity codes below to embed it in web pages, code, and documents.

Quick facts

Unicode
U+25A0
Decimal
9632
Hex
0x25A0
Octal
0o22640

Unicode identity

FormatValueCopy
Code pointOfficial Unicode notationU+25A0
Official nameUnicodeData.txt, Unicode 18.0.0BLACK SQUARE
DecimalBase 109632
HexadecimalBase 160x25A0
OctalBase 80o22640
BinaryBase 20010010110100000
General categorySymbol, otherSo
Unicode blockU+25A0–U+25FFGeometric Shapes
PlaneBasic Multilingual Plane (BMP, Plane 0)

HTML & CSS

FormatValueCopy
HTML entity (decimal)■
HTML entity (hex)■
CSS content escapeUse inside content: "…"\25A0
URL encodedPercent-encoded UTF-8%E2%96%A0

Programming languages

FormatValueCopy
JavaScript / TypeScript\u25A0
JSONUTF-16 surrogate pairs\u25A0
Python\u25A0
Java / C# / Kotlin\u25A0

Byte encodings

FormatValueCopy
UTF-83 bytesE2 96 A0
UTF-16 (BE)25A0
UTF-32 (BE)000025A0

How to type Black square

  • Windows

    Hold Alt and type +25A0 with the hex numeric keypad option enabled, or type 25A0 then press Alt+X in Word and most Office apps.

  • macOS

    Enable the Unicode Hex Input keyboard, hold Option, and type 25A0. Or open Character Viewer (Control+Command+Space) and search "Black square".

  • Linux

    Press Ctrl+Shift+U, type 25a0, then press Space or Enter in GTK apps. IBus and most terminals support the same sequence.

  • HTML, CSS & code

    Paste the character directly, or use the escapes above: ■ in HTML, \25A0 in CSS, and \u25A0 in JavaScript.

Official Unicode reference

Character name
BLACK SQUARE
Block
Geometric Shapes (U+25A0–U+25FF)
General category
So — Symbol, other

Data from the Unicode Character Database, version 18.0.0. See the official code chart for the Geometric Shapes block: U25A0.pdf (PDF, unicode.org).

Frequently asked questions

How do I copy the Black square symbol?

Click the Copy button at the top of this page, or select ■ and press Ctrl+C (Cmd+C on Mac). It is plain Unicode text, so it pastes into documents, chats, code, and design tools.

What is the Unicode code point for Black square?

Black square is U+25A0 (decimal 9632, hexadecimal 0x25A0, octal 0o22640). It lives in the Geometric Shapes block (U+25A0–U+25FF) of the Basic Multilingual Plane (BMP, Plane 0).

What is the official Unicode name of Black square?

The Unicode Standard (version 18.0.0) names this character "BLACK SQUARE". Its General_Category is So (Symbol, other).

What is the HTML code for Black square?

Use ■ or ■. In CSS, use content: "\25A0".

How do I type Black square in code?

JavaScript: "\u25A0". Python: "\u25A0". JSON and Java: "\u25A0". The UTF-8 byte sequence is E2 96 A0.

Is Black square an emoji?

No. Black square is a text symbol and renders as a monochrome glyph in the current font. Some platforms may offer an emoji variant when U+FE0F is appended.

View all shapes