|
Vertical Bar
- Unicode
- U+007C
- Category
- Punctuation
- HTML Entity
- |
- CSS
- \007C
The vertical bar (|), also called the pipe, is a straight upright line. Many older keyboards printed it with a gap in the middle (¦), but the character you type today is the solid one; the broken bar is a separate symbol. In writing it divides items on one line — menu entries, page titles (Home | About) and bios — and in mathematics it marks absolute value (|x|) and "such that" in set notation.
On a US keyboard it is Shift + the backslash key above Enter. On an iPhone it is on the #+= page, on Android on the =\< page.
On a US keyboard it is Shift + the backslash key above Enter. On an iPhone it is on the #+= page, on Android on the =\< page.
How to Type
- Windows
- Shift+\ (US) · Alt+124
- macOS
- Shift+\ (US)
- Linux
- Shift+\ · Ctrl+Shift+U 7c
- HTML
- |
In Programming
In Unix shells | pipes one command's output into the next (ls | grep log). It is bitwise OR in C-family languages, logical OR doubled (||), alternation in regular expressions (cat|dog), union types in TypeScript, PHP 8 and Python 3.10+ (int | str), and the column separator in Markdown tables.
Tags
vertical bar
pipe symbol
vertical line
straight line symbol
alt 124
shift backslash
keyboard symbol
ascii
separator