Identify Unicode Block and Bar Characters

How to identify Unicode block, bar and black shape characters by code point, tell them apart from formatting, and judge whether they stay usable after copying.

A solid bar or block in a piece of text can come from several different sources. It might be a Unicode character such as a full block, a geometric shape, a box-drawing line or an emoji. It might also be a highlight, border or background applied by formatting, with no character behind it. These sources look alike on screen but behave very differently when you copy, search, edit or read the text with assistive technology. This review explains how to tell them apart, how to find the exact code point, and when a block or bar character is the right choice.

Short verdict: when block and bar characters make sense

Block and bar characters work well for visual decoration in plain-text settings. Examples include dividers, simple text-based charts, terminal or monospaced layouts, and placeholder strings that replace real text. Their main benefit is that they are ordinary characters. They survive copy and paste wherever the font can display them, and they need no styling support at the destination.

The main drawback is meaning. A block character says nothing about what it stands for, so screen readers, search and anyone reading a copy cannot recover the information it replaces or represents. Plain text is the better choice in three cases: when the content has to be understood by everyone, when it has to be findable, and when it may be shown in an environment whose fonts you do not control. Examples are a status label, a value shown only as a bar chart, or an indication that something was removed.

What you are actually looking at

The first question is whether the bar is stored as a character or only drawn by presentation. Use these signs to tell:

  • It is a character if you can select it on its own, copy it, and paste it into a plain-text editor, where it still appears (or appears as a missing-glyph box).
  • It is formatting if a selection gives you the underlying words, or nothing, and pasting into a plain-text editor shows ordinary letters or empty space. Black highlighting, CSS backgrounds, borders and drawn shapes all behave this way.
  • It may be a character followed by an invisible modifier if a pasted symbol looks different from the original, for example switching between a flat shape and a colored emoji. Variation selectors can cause this.

This difference matters most for redaction. If each letter is replaced with a block character, the original letters are gone from that copy of the text. If dark highlighting or an overlay is applied instead, the original text usually stays in the document. Anyone who copies, searches or extracts the text may still recover it. Character substitution changes what is stored, while formatting changes only what is displayed.

Common block, bar and black shape characters

The characters people usually mean by a character bar, a black block or a black bar fall into a few Unicode groups. The Block Elements range (U+2580 to U+259F) holds solid and partial blocks and shades. Geometric Shapes and related ranges hold filled squares and rectangles. Box Drawing (U+2500 to U+257F) holds thin and heavy lines. A few punctuation and math characters supply vertical and horizontal bars.

CharacterCode pointUnicode nameTypical use
█U+2588FULL BLOCKSolid bars, pixel-style text art, placeholder redaction
▀U+2580UPPER HALF BLOCKHalf-height art and graphics
▄U+2584LOWER HALF BLOCKHalf-height art and graphics
▌U+258CLEFT HALF BLOCKHalf-width art and graphics
▐U+2590RIGHT HALF BLOCKHalf-width art and graphics
░ ▒ ▓U+2591 to U+2593LIGHT, MEDIUM and DARK SHADETextured fills and gradients
▁ to ▇U+2581 to U+2587LOWER ONE EIGHTH BLOCK to LOWER SEVEN EIGHTHS BLOCKSparklines and vertical bar charts
▉ to ▏U+2589 to U+258FLEFT SEVEN EIGHTHS BLOCK to LEFT ONE EIGHTH BLOCKFine-grained horizontal progress bars
■U+25A0BLACK SQUAREBullets and markers
▬U+25ACBLACK RECTANGLEShort horizontal bars
▮U+25AEBLACK VERTICAL RECTANGLEUpright bars and markers
⬛U+2B1BBLACK LARGE SQUAREOften shown as an emoji
|U+007CVERTICAL LINEThe keyboard bar or pipe character
¦U+00A6BROKEN BARA distinct character, not a styled vertical line
│ ┃U+2502, U+2503BOX DRAWINGS LIGHT VERTICAL, HEAVY VERTICALTable borders and tree diagrams in monospaced text
─U+2500BOX DRAWINGS LIGHT HORIZONTALHorizontal rules in monospaced text
―U+2015HORIZONTAL BARA dash-like bar, distinct from the em dash (U+2014)
‖U+2016DOUBLE VERTICAL LINEMath and typographic separators
|U+FF5CFULLWIDTH VERTICAL LINEVertical bar sized for East Asian text

In Unicode names, "black" means filled and "white" means outlined. It does not describe the displayed color. BLACK SQUARE (U+25A0) is a filled square and WHITE SQUARE (U+25A1) is its outline. Both take the text color, so a "black" character on a dark theme may appear light. Searching for a black unicode character will usually lead to these filled shapes rather than to anything defined by color.

How to identify the exact code point

Look-alikes are common. A full block, a black square and a black large square can look almost the same in one font. A vertical line, a box-drawing vertical and a fullwidth vertical line can be hard to tell apart. Their shape on screen is not a reliable guide. Checking the code point is the dependable way to identify them. If you can run Python, the standard library will name each character in a pasted string:

import unicodedata

text = "█▀▄■▬|│⬛"
for ch in text:
    print(f"U+{ord(ch):04X}  {unicodedata.name(ch, '<no name>')}")

This loop works one code point at a time, so it also reveals hidden characters. If a pasted emoji-style square is followed by VARIATION SELECTOR-16 (U+FE0F), that selector is why the symbol displays as a colored emoji. VARIATION SELECTOR-15 (U+FE0E) requests the plain text style. Not every platform honors either request. In JavaScript, codePointAt(0) on a single character returns the same number, which you can format as hexadecimal.

Without code, the operating system's character viewer, or a Unicode lookup page that accepts a pasted character, will usually show the name and code point. Menu paths and site features vary by version and were not verified for this article, so check the specific tool before you rely on it. Useful search terms are the Unicode name from the table above, the code point written as U+2588 and so on, and the block name, such as Block Elements, Box Drawing or Geometric Shapes.

About the phrase "ASCII block character"

ASCII proper covers only codes 0 to 127 and contains no block or shade characters. The only bar-like ASCII character is the vertical line (U+007C). When people say ASCII block characters, they usually mean the solid, half and shaded blocks from older 8-bit PC character sets, such as IBM code page 437. Those sets are often loosely called extended ASCII. Unicode includes equivalent characters in its Block Elements range, partly for compatibility with such legacy sets. When you search for or convert these characters today, use the Unicode names and code points rather than the old 8-bit byte values, because the byte values mean different things in different encodings.

Will it survive copying and sharing?

Block and bar characters are standard Unicode text. Whether they survive depends on the destination's encoding and fonts, not on any special formatting. The general limits are listed below. They have not been tested here against any specific app, site or screen reader, so test your actual destination before relying on a result.

  • Rendering: if the destination's fonts lack a glyph, the character may appear as an empty box or question mark, or in a fallback font that does not match the surrounding text.
  • Alignment: blocks and box-drawing lines line up only in monospaced fonts. In proportional fonts, bars and borders drift apart. Some of these characters can also display at single or double width depending on East Asian width rules and the terminal or font, which can break column layouts.
  • Emoji presentation: shapes like the black large square may appear as flat glyphs in one place and as colored emoji in another. This changes their size and spacing.
  • Assistive technology: screen readers may announce each character by its name, read a symbol description, or skip it, depending on the software and its settings. A row of twenty full blocks can become twenty repeated announcements or nothing at all. Neither tells the listener what the bar means.
  • Search and editing: block characters replace letters rather than styling them, so text replaced by bars cannot be found by searching for the original words. Editing a bar chart drawn in characters means retyping characters rather than changing a number.
  • Reading order: these characters have neutral or left-to-right directional behavior and do not reverse text. In mixed-direction text, bars placed between right-to-left and left-to-right runs can appear on an unexpected side. Check the layout in the actual destination.

When to add or use a plain-text equivalent

Pair or replace block characters with words whenever the bar carries information:

  • Progress or chart bars: state the value in text, such as "72%" or "7 of 10", next to the bar.
  • Redaction placeholders: if the reader needs to know something was removed, write "[redacted]" or describe what was removed. Make sure the original text has been deleted rather than covered by formatting.
  • Dividers and decoration: these rarely need a text equivalent. In web content, mark purely decorative character runs so that assistive technology can skip them, rather than leaving them to be read aloud.
  • Status markers: when a filled square or bar signals a state, also include the state as a word.

Gaps in this review

No platform-specific rendering tests, screen-reader recordings or tool evaluations were available for this article. The character names, code points and ranges above follow the Unicode Standard. Statements about display, announcement and copy behavior describe general mechanisms and known sources of variation, not measured results. Check the specific app, font, browser or assistive technology your readers will use.