Pipe Symbol and Vertical Bar (|)
U+007CVERTICAL LINEBasic Latin
Also known as pipepipe symbol
The vertical bar | is a straight upright line on the keyboard, often called the pipe. It separates items in titles and menus, sends one command’s output to another in a terminal, and marks absolute value in mathematics.
Symbol codes
- Unicode
U+007C- Alt Code
Alt+124- HTML Code
|- CSS Code
\7C- HTML Entity
|- HEX Code
|
Symbols that look like |
- Divides: The divides sign, used in number theory for “divides.”
- Double Vertical Line: The double vertical line, used for norms and parallel lines.
About Vertical Bar
The vertical bar | is a straight upright line on the keyboard, often called the pipe. It separates items in titles and menus, sends one command’s output to another in a terminal, and marks absolute value in mathematics.
| is encoded in Unicode as code point U+007C (decimal 124). Its official Unicode name is VERTICAL LINE.
It belongs to the Basic Latin block (U+0000–U+007F), its General Category is Math Symbol (Sm), and it was added in Unicode 1.1, released in 1993. Its script value is Common: it is shared across writing systems rather than belonging to one.
Common uses
- Separators in titles and lists, as in Home | Contact
- Pipes in command lines, as in ls | sort
- Logical “or” in programming, written ||
- Absolute value in mathematics, as in |x|
Examples
- Title separator
- Help | HotSymbol
- Command line
- cat notes.txt | grep todo
Sources: Unicode Character Database 18.0.0, the HTML Standard’s list of named character references, and Unicode’s code page mappings.
How to type or insert Vertical Bar
- Windows
- Press Shift+\ on a U.S. keyboard layout. On a U.K. layout, press Shift+\ using the key left of Z.
- macOS
- Press Shift+\ on a U.S. layout.
- iPhone and iPad
- Tap 123, then #+=; | is in the second row.
- Android
- Tap ?123, then =\<; | is on the second page of symbols.
- Any device
- Select Copy symbol, then paste with Ctrl+V, or ⌘+V on a Mac.
- Windows Alt code
- With Num Lock on, hold Alt, type 124 on the numeric keypad, then release Alt.
- Microsoft Word
- Type
007C, then press Alt+X. - macOS Character Viewer
- Press Control+⌘+Space and search for “vertical line”.
- Linux (GTK and IBus)
- Press Ctrl+Shift+U, type
007c, then press Space. - HTML
|or|. In a UTF-8 page you can also paste the character itself.- CSS
content: "\7C";in a::beforeor::afterrule.- JavaScript
"\u007C"
Technical properties
Unicode 18.0.0
- Code point
- U+007C
- Decimal
- 124
- Unicode name
- VERTICAL LINE
- Block
- Basic Latin · U+0000–U+007F
- General category
- Math Symbol (Sm)
- Script
- Common
- Introduced
- Unicode 1.1
- JavaScript
- "\u007C"
Common questions about Vertical Bar
What is the Vertical Bar symbol?
The vertical bar | is a straight upright line on the keyboard, often called the pipe. It separates items in titles and menus, sends one command’s output to another in a terminal, and marks absolute value in mathematics. In Unicode it is U+007C, officially named VERTICAL LINE. It is also known as pipe and pipe symbol.
Why is | called a pipe?
In Unix command lines, | “pipes” the output of one command into the next, as in ls | sort. The name stuck for the character itself.
Where is the pipe key on a keyboard?
On a U.S. keyboard, it is Shift+\ on the key above Enter. Some keyboards print it as a broken bar ¦, but the key still types |.
How do I copy and paste the Vertical Bar symbol?
Select Copy symbol at the top of this page, then paste with Ctrl+V on Windows and Linux or ⌘+V on a Mac. On a phone, tap Copy symbol, then touch and hold where you want it and choose Paste. | pastes as ordinary text, so it works in documents, messages, and code.
How do I type the Vertical Bar symbol on Windows?
Turn on Num Lock, hold Alt, type 124 on the numeric keypad, then release Alt. In Microsoft Word, type 007C and press Alt+X to turn the code into |. In any app, open Character Map from the Start menu, search for “vertical line”, then select and copy the character.
How do I type the Vertical Bar symbol on a Mac?
Press Control+⌘+Space to open the Character Viewer, search for “vertical line”, and double-click the result to insert it.
How do I type the Vertical Bar symbol on an iPhone or Android phone?
The simplest way is to copy it from this page and paste it where you need it. If you use it often, save it as a text shortcut: on iPhone, go to Settings > General > Keyboard > Text Replacement; with Gboard on Android, go to Gboard settings > Dictionary > Personal dictionary.
Can I use the Vertical Bar symbol in Word, Google Docs, and social media?
Yes. | is a standard Unicode character, so you can paste it into Microsoft Word, Google Docs, emails, and posts or bios on Instagram, X, Facebook, and TikTok. In Google Docs you can also choose Insert > Special characters and search for “vertical line”. In Word, choose Insert > Symbol > More Symbols, set from to Unicode (hex), and enter 007C as the character code.
Is the Vertical Bar symbol an emoji?
No. | is a text symbol, not an emoji. It takes the color and size of the surrounding text, and its exact shape depends on the font.
Why does the Vertical Bar symbol show as a box or question mark?
An empty box or a question mark means the font on that device has no glyph for |. The character is still there: it appears correctly wherever a font covers Unicode’s Basic Latin block, and free font families such as Google Noto cover nearly all of Unicode.
What are the HTML and CSS codes for the Vertical Bar symbol?
In HTML, write | (decimal) or | (hexadecimal), or the named entity |. In CSS, use content: "\7C"; in a ::before or ::after rule, and in JavaScript "\u007C". See all HTML codes.