Xerobit

Vertical Bar Symbol |: Copy and Paste

The vertical bar symbol is |. Click the button to copy it, or use the Unicode value U+007C, the HTML code or the keyboard shortcuts below to type it anywhere.

  • Symbol
    |
  • Unicode
    U+007C
  • HTML (decimal)
    |
  • HTML (hex)
    |
  • CSS
    \007C
  • JavaScript
    \u007C

Vertical Bar Symbol codes and values

FormatValue
UnicodeU+007C
HTML (decimal)|
HTML (hex)|
CSS\007C
JavaScript\u007C

The official Unicode name is "Vertical Line".

How to type the vertical bar symbol

Windows

  1. In Microsoft Word, type 007C and press Alt + X to turn the code into |.
  2. Or press Win + . to open the emoji and symbol panel and search for it.

Mac

  1. Press Control + Command + Space to open the Character Viewer and search for "vertical line".
  2. Or add the "Unicode Hex Input" keyboard in System Settings, hold Option and type 007C.

Linux

  1. In GTK apps press Ctrl + Shift + U, type 007c and press Enter.

Web pages

Write | in HTML, or paste the character directly into a UTF-8 page.

Encoding details

EncodingValue
Code pointU+007C (decimal 124)
UTF-8 bytes7C
URL encoded%7C
CategorySm

What the vertical bar symbol means

The vertical bar acts as a separator, delimiter, or logical operator depending on the context. Programmers use it for bitwise OR operations, while mathematicians employ it to indicate absolute value or divisibility.

Using the vertical bar symbol well

Type the pipe character directly from a standard keyboard layout. In regular expressions and shell scripts, remember to escape it if you need a literal match.

Characters next to it in Unicode

CharacterCodeName
yU+0079Latin Small Letter Y
zU+007ALatin Small Letter Z
{U+007BLeft Curly Bracket
}U+007DRight Curly Bracket
~U+007ETilde

FAQ

What is the Unicode for the vertical bar symbol?

The vertical bar symbol | is U+007C (Vertical Line).

How do I type | on a keyboard?

There is no classic Alt code for it. On Windows type 007C in Word and press Alt + X, on Mac use the Character Viewer, and on Linux press Ctrl + Shift + U then 007c.

What is the HTML code for |?

Use |. The hexadecimal form is |.

More symbols