← Back to Blog

Pipe Symbol | Copy and Paste — Vertical Bar Meaning & Uses

·6 min read

|

Tap or click to select · Copy with Ctrl+C / Cmd+C

The pipe symbol | is one of those characters you see everywhere once you start looking. Programmers use it daily. Linux users type it constantly. Mathematicians use it for absolute values and divisibility. It goes by many names — vertical bar, pipe, OR operator, Sheffer stroke — but it is always the same simple vertical line.

Quick Copy

|

Pipe / Vertical Bar

Unicode: U+007C | HTML: |

Double Vertical Bar

Unicode: U+2016

¦

Broken Bar

Unicode: U+00A6

What Is the Pipe Symbol Called?

Depending on context, you might hear it called:

Pipe Symbol in Programming

Logical OR

In most programming languages, a single | is bitwise OR, and double || is logical OR:

if (x > 0 || y > 0) { // at least one is positive }

Bitwise OR

Combines bits of two numbers:

5 | 3  // equals 7 (binary: 101 | 011 = 111)

Pipe in JavaScript / TypeScript

Used in RxJS for chaining operators, and in many frameworks for template syntax:

observable$.pipe( map(x => x * 2), filter(x => x > 10) )

Pipe Symbol in Linux / Unix

The pipe is fundamental to the Linux command line. It takes the output of one command and feeds it as input to the next:

cat log.txt | grep "error" | wc -l

This reads a file, filters for lines containing "error", and counts them. Three commands, one pipe chain.

Other common uses:

Pipe Symbol in Mathematics

How to Type the Pipe Symbol

Windows

Mac

Mobile (iOS / Android)

Pipe Symbol in Everyday Use

Table Separators

Markdown tables use pipes: | Column 1 | Column 2 |

Menu Navigation

File | Edit | View — pipes separate menu items in documentation.

Text Decoration

Used in ASCII art and text-based dividers for emails and social media posts.

Related Symbols

|

Pipe

&

Ampersand

/

Forward Slash

\\

Backslash

!

Exclamation

~

Tilde

The pipe symbol might look simple, but it powers command lines, programming logic, and mathematical notation worldwide. Copy it from above, or just remember: Shift + backslash.