Vertical Line Unicode: U+007C (ASCII 124) and the Lookalike Bars

Identify the vertical line character U+007C (ASCII 124) and the lookalike bars like ¦, ∣ and |. Learn what swapping them changes for code, search and accessibility.

When people search for the vertical line in Unicode, they usually mean U+007C VERTICAL LINE, the same character as ASCII 124. It is also called the pipe or vertical bar. Unicode also contains several other characters that look almost identical but have different code points, meanings and behavior. This review identifies the common ones and explains what changes when text is converted from one to another or passed through reverse, mirror or styling tools. It also covers when the plain ASCII character is the safer choice.

Is a substitute vertical bar suitable for your use?

Use U+007C for anything a program, parser, search box or screen reader has to interpret. That includes source code, shell commands, Markdown tables, regular expressions, delimited data, file names and form input. A lookalike makes sense in two situations. The first is when you need its specific meaning: ∣ for "divides" in mathematics, │ for box-drawing borders, ¦ where a broken bar is specified, or ǀ as a letter in the spelling systems of some click languages. The second is a purely visual effect in display text that nobody needs to search, paste into code or hear read aloud reliably.

A substitute gives you exact meaning or a specific look. The tradeoff that usually decides the question is that it is a different stored character, so anything that matches on the pipe will not match it. If you are unsure, plain text with U+007C is preferable.

The standard vertical line: U+007C

  • Unicode name: VERTICAL LINE
  • Code point: U+007C
  • ASCII value: decimal 124, hexadecimal 7C, octal 174
  • UTF-8 encoding: the single byte 7C, identical to ASCII
  • HTML references: | or |, plus the HTML5 named references | and |
  • Common names: pipe, vertical bar, bar
  • US keyboard: Shift plus the backslash key
JavaScript / JSON string:  "\u007C"
Python string:             "\u007c"  or  "\N{VERTICAL LINE}"
CSS content property:      content: "\7C";
HTML:                      |  |  |

Lookalike vertical characters and how they differ

The characters below can appear as a single upright stroke in many fonts. Their Unicode names and code points come from the standard character data. How similar they look depends on the font.

GlyphCode pointUnicode nameUTF-8 bytesTypical purpose
|U+007CVERTICAL LINE7CASCII pipe; programming, delimiters, table syntax
¦U+00A6BROKEN BARC2 A6Latin-1 symbol; separate from the pipe despite historical confusion
∣U+2223DIVIDESE2 88 A3Mathematical "divides" relation
∥U+2225PARALLEL TOE2 88 A5Mathematical parallel relation
‖U+2016DOUBLE VERTICAL LINEE2 80 96Double bar in notation such as norms
│U+2502BOX DRAWINGS LIGHT VERTICALE2 94 82Text-mode borders and tree diagrams
|U+FF5CFULLWIDTH VERTICAL LINEEF BD 9CFull-width form for East Asian typography
ǀU+01C0LATIN LETTER DENTAL CLICKC7 80A letter in some African language orthographies
।U+0964DEVANAGARI DANDAE0 A5 A4Sentence-ending punctuation in Devanagari and other Indic scripts
❘U+2758LIGHT VERTICAL BARE2 9D 98Decorative dingbat

Unicode also has combining vertical marks that attach to the preceding character instead of standing alone. Examples are U+030D COMBINING VERTICAL LINE ABOVE, U+0329 COMBINING VERTICAL LINE BELOW and U+20D2 COMBINING LONG VERTICAL LINE OVERLAY. They matter mainly when text is reversed, as described below.

How to identify which bar you have

You cannot reliably tell these characters apart by eye. To check, look up the code point with a character inspector, use your editor's code-point display, or run a short script like the one below. In a hex view, the standard pipe is the single byte 7C. A sequence beginning with C2, C7, E0, E2 or EF is a different character.

import unicodedata

text = "a|b¦c∣d"
for ch in text:
    print(f"U+{ord(ch):04X}  {unicodedata.name(ch, '<unnamed>')}")

What a transformation actually changes

Character substitution changes the stored text. Replacing | with ∣, | or ǀ produces a new code point, even if the screen looks the same. Software sees the new character, not the old one.

Fancy-font and styling generators work by substitution too. Unicode's Mathematical Alphanumeric Symbols block provides bold, italic and script variants of letters and digits, not punctuation. As a result, a generator can only leave the vertical line unchanged or swap in a different character. It cannot produce a "bold pipe." Real bold or italic formatting comes from markup or CSS and leaves the stored character as U+007C.

Reversal tools change the order of characters, not the characters themselves. Because U+007C is a single code point, it survives reversal unchanged. Problems arise with combining marks. A naive tool that reverses code points one by one can move a mark onto a different base character, and that base can be the bar itself. A tool that reverses whole grapheme clusters keeps each mark with its letter. The sequences below show the difference in code-point notation, so the result does not depend on how your screen renders it.

Input:                  U+0061 U+030D  U+007C  U+0062   (a with vertical line above, bar, b)
Naive reversal:         U+0062 U+007C  U+030D  U+0061   (mark now attaches to the bar)
Grapheme-aware reversal: U+0062 U+007C  U+0061  U+030D  (mark stays on the a)

Mirroring can mean two things. Mirror-text tools that substitute flipped-looking glyphs usually have nothing to swap for the vertical line, because the shape is already symmetric. A CSS transform such as scaleX(-1) flips only the rendered image and leaves the stored text untouched. In both cases the bar itself looks the same, so a "mirrored" bar gives no clue about whether the underlying text changed.

Bidirectional display is a separate effect. U+007C has the bidirectional class Other Neutral and is not in the set of characters that Unicode mirrors in right-to-left text. On a line that mixes left-to-right and right-to-left scripts, a neutral character takes its direction from the surrounding text. The bar can therefore appear in an unexpected visual position even though its stored position has not changed.

Will the result stay readable and usable after copying or sharing?

Copy and paste keeps the code point you actually have. That works in your favor with U+007C and against you with a lookalike. Several kinds of syntax treat only U+007C as special: shell pipelines, Markdown table cells, regular-expression alternation and pipe-delimited data. A pasted lookalike will be treated as ordinary text, which can silently change a command's behavior or break a table layout. To show a literal pipe inside a Markdown table, the usual approach is to escape it as |, not to swap in a lookalike that readers might later copy into code.

Search and matching are literal unless the system normalizes text. Searching for | will not find ∣, ǀ or ¦. Unicode NFKC normalization maps the fullwidth | (U+FF5C) to U+007C, but it does not map DIVIDES, BROKEN BAR or LATIN LETTER DENTAL CLICK. Whether a particular search box applies normalization depends on that product and is not established here.

Compatibility depends on encoding and fonts. U+007C is in ASCII, so it survives almost any text pipeline. Characters outside ASCII can turn into question marks or garbled bytes in systems that do not use UTF-8. They can also show up as empty boxes if the font has no glyph for them.

Lookalikes also carry a security consideration. ǀ (U+01C0) is classed as a letter, so it can appear inside identifiers and names where it resembles a lowercase l, a capital I or a pipe. Confusable-character checks are designed to catch this kind of character. Text built with it can mislead readers even when no harm is intended.

How assistive technology announces the bar varies. Depending on the screen reader and its punctuation verbosity setting, the pipe may be spoken by name or skipped. A lookalike may be read by its Unicode name, such as "divides," or not at all. No specific screen reader was tested for this review, so check with the tools your audience uses. When the bar is purely a visual separator, as in page titles or navigation, decide whether hearing it helps. Decorative dividers can be drawn with CSS borders, or marked aria-hidden, so they stay out of the reading flow.

When plain text is preferable

  • The text will be pasted into code, a terminal, a spreadsheet formula or a configuration file.
  • The bar is a delimiter or table separator that software must parse.
  • Readers need to find the text with search or filters.
  • The content must work with screen readers without extra testing.
  • The destination's encoding or font support is unknown.
  • The text appears in usernames, identifiers or anything where spoofing is a concern.

Evidence gaps

The code points, names, encodings and normalization behavior above come from the Unicode character data and general encoding rules. This review did not test rendering in specific apps, fonts, browsers or screen readers. It did not measure how any particular reverse, mirror or font-generator tool handles these characters, and it makes no claims about such tools' data practices. Before relying on a lookalike in a specific destination, test it there.