|

Vertical Bar Symbol (|)

Copy and paste the vertical bar | with one click

Unicode Character
|
Unicode Hex
U+007C
HTML Entity
|
Decimal Code
124

About the Vertical Bar Symbol

Last reviewed on October 31, 2026

| is a straight vertical line, also called the pipe. Shells use it to feed one command into another. Math uses it for absolute value or divides, as in |x|, and designers use it between menu items.

Its official Unicode name is Vertical Line. Browse the Punctuation & Special page for related characters.

How to Type Vertical Bar on a Keyboard

Windows: Press Shift+Backslash on a US keyboard
Mac: Press Shift+Backslash
Microsoft Word: Type 007C then press Alt+X
Phone & tablet: Copying | from this page is fastest — see our mobile typing guide

Vertical Bar Code for HTML, CSS & JavaScript

HTML: |
CSS: content: '\007C';
JavaScript: '\u007C'
Unicode: U+007C

Frequently Asked Questions

How do I type vertical bar | on Windows?

Press Shift+Backslash on a US keyboard. You can also copy | straight from this page.

How do I type | on a Mac?

Press Shift+Backslash.

What is the Unicode and HTML code for vertical bar?

It is Unicode code point U+007C, named Vertical Line. In HTML, use | or the numeric reference |.