The vertical bar |, double vertical line ‖, and parallel symbol ∥ can look almost identical, especially in fonts that draw them as simple upright strokes.
They are different Unicode characters with different roles. U+007C VERTICAL LINE is a general-purpose character. U+2016 DOUBLE VERTICAL LINE is a punctuation character that is also used in mathematical delimiter notation. U+2225 PARALLEL TO is a mathematical relation operator.
Vertical Bar, Double Vertical Line, and Parallel Symbol at a Glance
| Symbol | Unicode name | Code point | Typical role |
|---|---|---|---|
| | | VERTICAL LINE | U+007C | General-purpose vertical bar, delimiter, or programming symbol |
| ‖ | DOUBLE VERTICAL LINE | U+2016 | Double-line delimiter; used in pairs for norm notation |
| ∥ | PARALLEL TO | U+2225 | Mathematical relation meaning “is parallel to” |
These characters show why visually similar punctuation symbols and mathematical operators should not be identified by shape alone.
What Is the Vertical Bar |?
| is U+007C VERTICAL LINE.
It is commonly called a vertical bar and, especially in computing, a pipe.
Because it is part of the basic ASCII character set and is available on standard keyboards, the vertical bar has acquired many different uses.
It can appear in:
- programming and command-line syntax;
- mathematical delimiters;
- set-builder notation;
- conditional probability;
- absolute-value notation;
- plain-text tables and separators.
The meaning comes from context rather than from the character alone.
Why Is | Called a Pipe?
The name pipe is especially common in computing.
In Unix-style shells, for example, the vertical bar can connect the output of one command to the input of another:
command1 | command2
This creates a pipeline, which explains the familiar name pipe character.
That name describes one use of U+007C. A vertical bar appearing in mathematics is not necessarily functioning as a pipe.
Vertical Bar in Programming
Programming languages frequently assign special meanings to the vertical bar.
Depending on the language, a single bar may represent an operation such as bitwise OR, while two bars:
||
may represent logical OR.
Those meanings belong to the programming language, not to Unicode itself.
It is also important that || normally consists of two separate U+007C VERTICAL LINE characters. It is not the same encoded text as ‖ U+2016 DOUBLE VERTICAL LINE.
Two Vertical Bars || vs Double Vertical Line ‖
These forms can look almost identical:
||
‖
But their underlying character sequences are different.
| Form | Encoding |
|---|---|
| || | U+007C + U+007C |
| ‖ | U+2016 |
The first consists of two independent vertical-line characters. The second is a single Unicode character.
This distinction can matter in programming, search, text comparison, mathematical conversion, and character counting.
What Is the Double Vertical Line ‖?
‖ is U+2016 DOUBLE VERTICAL LINE.
Unicode records it as a punctuation character and notes its use in pairs to indicate a mathematical norm.
For example:
‖x‖
may denote the norm of x.
In this notation, the two double vertical lines act as delimiters around the expression. They do not express a parallel relationship between two mathematical objects.
What Is the Parallel Symbol ∥?
∥ is U+2225 PARALLEL TO.
It is a mathematical relation operator used to state that two objects are parallel.
For example:
AB ∥ CD
can state that line AB is parallel to line CD.
Unlike the delimiter-like use of ‖, the parallel symbol normally appears between the two objects being related.
‖ vs ∥: Why Does Unicode Encode Both?
Unicode intentionally separates several ordinary punctuation characters from visually similar mathematical operators.
DOUBLE VERTICAL LINE ‖ and PARALLEL TO ∥ are one such pair.
Compare:
‖x‖
Here the marks delimit an expression.
Now compare:
a ∥ b
Here the symbol expresses a mathematical relation.
Keeping the characters separate allows mathematical software and layout systems to preserve the intended semantics rather than relying only on appearance.
Spacing Can Provide a Clue
In well-typeset mathematics, the surrounding spacing often helps reveal the intended role.
A delimiter normally sits close to the expression it encloses:
‖x‖
A relation operator is typically given spacing on either side:
a ∥ b
That spacing is controlled by mathematical typesetting rather than being part of the Unicode character itself, so it should be treated as a clue rather than a definitive identification method.
Vertical Bar | in Absolute Value
Single vertical bars are commonly used as delimiters for absolute value:
|x|
Here the bars surround an expression rather than acting as an operator between two expressions.
Mathematical typesetting systems may determine the appropriate glyph size and spacing from the mathematical structure, even when the notation resembles an ordinary keyboard vertical bar.
Vertical Bar | in Set-Builder Notation
A vertical bar is also commonly used in set-builder notation:
{x | x > 0}
In this context, the bar is commonly read as “such that.”
Another convention uses a colon for the same role, so the meaning should be inferred from the surrounding mathematical notation.
Vertical Bar | in Conditional Probability
Probability notation frequently uses a vertical bar:
P(A | B)
This is commonly read as the probability of A given B.
Again, the same U+007C shape serves a role defined by mathematical convention.
Vertical Line | vs Divides Symbol ∣
Another important look-alike is:
∣ — U+2223 DIVIDES
For example:
a ∣ b
means that a divides b.
| Symbol | Unicode name | Code point |
|---|---|---|
| | | VERTICAL LINE | U+007C |
| ∣ | DIVIDES | U+2223 |
| ‖ | DOUBLE VERTICAL LINE | U+2016 |
| ∥ | PARALLEL TO | U+2225 |
As with DOUBLE VERTICAL LINE and PARALLEL TO, Unicode separates the general-purpose punctuation character from the mathematical relation operator.
Why | and ∣ Can Look Identical
In some fonts, U+007C VERTICAL LINE and U+2223 DIVIDES are visually almost indistinguishable.
The difference may instead appear through mathematical spacing and layout behavior.
This is one reason a screenshot alone cannot always identify the exact Unicode character.
Double Vertical Line ‖ vs Pause Symbol ⏸
Another two-line symbol is:
⏸ — U+23F8 DOUBLE VERTICAL BAR
It is commonly used as a media-control pause symbol.
It should not be confused with either U+2016 ‖ or U+2225 ∥.
The same visual idea—two vertical strokes—is reused in punctuation, mathematics, and interface symbols, but the characters have different identities.
Why Plain-Text Mathematics Often Uses ||
When specialized mathematical characters are inconvenient to enter, writers often use ordinary keyboard characters as substitutes.
For example:
||x||
may be used in plain text for a mathematical norm.
Likewise:
a || b
may be intended to communicate parallelism in an informal context.
These forms can be understandable to a human reader while still consisting of ordinary ASCII vertical lines rather than the dedicated Unicode characters.
How to Tell Which Vertical-Line Symbol You Have
Start with context:
- In source code or a shell command, | or || is likely.
- A pair surrounding a mathematical expression may represent a norm.
- A symbol between geometric objects meaning “parallel” is likely ∥.
- A single mathematical line meaning “divides” may be ∣.
Context can suggest what the author intended, but it does not prove which Unicode character was actually typed.
If a copied symbol is too similar to identify by sight, paste it into What Is This Symbol and inspect the actual character.
The Main Difference
- | is the general-purpose VERTICAL LINE;
- ‖ is DOUBLE VERTICAL LINE and is used in pairs for notation such as mathematical norms;
- ∣ is the mathematical DIVIDES relation;
- ∥ is the mathematical PARALLEL TO relation.
Because the glyphs can be almost indistinguishable, the surrounding context and Unicode code point are more reliable than visual appearance alone.