Half Block Unicode: How to Identify ▀ ▄ ▌ ▐ by Code Point

Identify half block Unicode characters (▀ ▄ ▌ ▐) by code point and name, tell them apart from look-alikes, and verify the result step by step.

A half block is a Unicode character that fills exactly half of a character cell: the top, bottom, left or right half. These characters are used in text-mode graphics, progress bars, terminal art and box-style layouts. Several nearby characters fill a quarter, three-eighths or five-eighths of a cell, so they can look the same at small sizes. To identify one with certainty, look up its code point and official name instead of judging by its shape.

The four half block characters

All four half blocks are in the Block Elements range, U+2580 to U+259F. A code point is the unique number Unicode assigns to a character, written as U+ followed by a hexadecimal value. The official name comes from the Unicode Character Database and does not change once assigned. The full block is listed below for comparison.

Character | Code point | Official name | UTF-8 bytes
▀ | U+2580 | UPPER HALF BLOCK | E2 96 80
▄ | U+2584 | LOWER HALF BLOCK | E2 96 84
▌ | U+258C | LEFT HALF BLOCK | E2 96 8C
▐ | U+2590 | RIGHT HALF BLOCK | E2 96 90
█ | U+2588 | FULL BLOCK (for comparison) | E2 96 88

The same range also has eighth-height and eighth-width bars (U+2581–U+2587, U+2589–U+258F, U+2594, U+2595), shade characters (░ U+2591, ▒ U+2592, ▓ U+2593) and quadrant characters (U+2596–U+259F) that fill one or more quarters of a cell. Only the four characters in the table are named half blocks.

What a Unicode inspector does with your text

An inspection tool reads a string and reports each character's code point, official name and Unicode block. Many also show the encoded bytes in UTF-8 or UTF-16. It is read-only and does not change the text, so you can run it on any source, such as a pasted snippet, a log line or a file. This matters when two strings look the same on screen but differ underneath, for example when ▄ was typed in one place and the similar ▅ in another.

Step by step: identifying a half block character

  • 1. Copy only the character you want to check. Avoid surrounding spaces or line breaks, because the inspector will report them too.
  • 2. Paste it into an inspector: a programming language one-liner, an editor command or a character-info utility (all covered below).
  • 3. Read the code point and name. A half block reports U+2580, U+2584, U+258C or U+2590, with a name ending in HALF BLOCK.
  • 4. If the name says EIGHTH, QUADRANT or SHADE, you have a related Block Elements character, not a half block.
  • 5. Verify the result by regenerating the character from its code point and comparing it with the original (see the verification section).

Python

The standard unicodedata module returns official names. The hex(' ') call with a separator requires Python 3.8 or later.

import unicodedata

for ch in '▀▄▌▐':
    print(f'U+{ord(ch):04X}', unicodedata.name(ch), ch.encode('utf-8').hex(' '))

Example of expected output, based on the Unicode Character Database values above. This is not captured from a test run:

U+2580 UPPER HALF BLOCK e2 96 80
U+2584 LOWER HALF BLOCK e2 96 84
U+258C LEFT HALF BLOCK e2 96 8c
U+2590 RIGHT HALF BLOCK e2 96 90

JavaScript

codePointAt returns the numeric code point. JavaScript has no built-in lookup for character names, so this example prints only the code point.

for (const ch of '▀▄▌▐') {
  console.log('U+' + ch.codePointAt(0).toString(16).toUpperCase().padStart(4, '0'));
}

Command line

Dumping the bytes shows exactly what is stored, regardless of how the terminal draws it. In a UTF-8 terminal, the upper half block should produce the bytes e2 96 80. Going the other way, bash 4.2 and later can print a character from its code point when the locale uses UTF-8.

printf '▀' | od -An -tx1
printf '\u2580\n'

Text editors and input methods

  • Vim: put the cursor on the character and type ga to show its decimal, hexadecimal and octal values.
  • Emacs: put point on the character and press C-u C-x = to see its code point, name and other properties.
  • Microsoft Word: type 2580 and press Alt+X to turn it into ▀; select a character and press Alt+X to see its code point instead.
  • Linux desktops using GTK or IBus input: press Ctrl+Shift+U, type 2580, then press Enter or Space.

Telling half blocks apart from look-alikes

Depending on the font, a half block can be hard to tell apart from bars of a different height or from geometric shapes. Compare names, not appearance:

Half block | Common look-alike | Look-alike code point and name
▄ U+2584 | ▃ / ▅ | U+2583 LOWER THREE EIGHTHS BLOCK / U+2585 LOWER FIVE EIGHTHS BLOCK
▀ U+2580 | ▔ | U+2594 UPPER ONE EIGHTH BLOCK
▌ U+258C | ▍ / ▋ | U+258D LEFT THREE EIGHTHS BLOCK / U+258B LEFT FIVE EIGHTHS BLOCK
▐ U+2590 | ▕ | U+2595 RIGHT ONE EIGHTH BLOCK
▄ U+2584 | ▬ | U+25AC BLACK RECTANGLE (Geometric Shapes block)

Do not confuse "half block" with "halfwidth." The Halfwidth and Fullwidth Forms range (U+FF00–U+FFEF) contains narrow and wide variants of letters, punctuation and katakana. It is about how wide a character is, not about block shapes.

Inserting a half block by code point

Writing the code point instead of pasting the glyph keeps source files unambiguous. Here are the forms for the upper half block, U+2580:

Context | Syntax
HTML numeric reference | ▀
HTML named reference | ▀ (also ▄ for U+2584, █ for U+2588)
CSS content property | "\2580"
JavaScript / JSON string | "\u2580"
Python string | "\u2580" or "\N{UPPER HALF BLOCK}"

Verifying the result

  • Round trip: build the character from its code point (for example, chr(0x2580) in Python) and check that it equals the character you inspected.
  • Length check: a half block is one code point, so it has a string length of 1 in Python and JavaScript. It is 3 bytes in UTF-8. A longer result means extra characters, such as an invisible space or a variation selector, were copied with it.
  • Normalization check: Block Elements characters have no decomposition mappings, so NFC and NFKC normalization should leave them unchanged. Compare the text before and after normalization to confirm that nothing was replaced.

Rendering caveats

A correct code point does not guarantee a correct appearance. If the font lacks the glyph, a fallback font or a replacement box is shown. Line spacing can leave visible gaps between stacked blocks. Several Block Elements characters have the East Asian Width property set to Ambiguous, so terminals configured for CJK text may draw them double-width. These are display effects. The stored character is the same, and the inspection steps above will still report it correctly.

Gaps in this guide

No tool-specific test evidence was provided. The code points, names and byte values here come from the Unicode standard. The sample outputs show what to expect, not captured results. How a particular font, terminal or inspector displays these characters was not tested, so check it in your own environment.