Vertical Bar Symbol codes and values
| Format | Value |
|---|---|
| Unicode | U+007C |
| HTML (decimal) | | |
| HTML (hex) | | |
| CSS | \007C |
| JavaScript | \u007C |
The official Unicode name is "Vertical Line".
How to type the vertical bar symbol
Windows
- In Microsoft Word, type
007Cand press Alt + X to turn the code into |. - Or press Win + . to open the emoji and symbol panel and search for it.
Mac
- Press Control + Command + Space to open the Character Viewer and search for "vertical line".
- Or add the "Unicode Hex Input" keyboard in System Settings, hold Option and type
007C.
Linux
- In GTK apps press Ctrl + Shift + U, type
007cand press Enter.
Web pages
Write | in HTML, or paste the character directly into a UTF-8 page.
Encoding details
| Encoding | Value |
|---|---|
| Code point | U+007C (decimal 124) |
| UTF-8 bytes | 7C |
| URL encoded | %7C |
| Category | Sm |
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
| Character | Code | Name |
|---|---|---|
| y | U+0079 | Latin Small Letter Y |
| z | U+007A | Latin Small Letter Z |
| { | U+007B | Left Curly Bracket |
| } | U+007D | Right Curly Bracket |
| ~ | U+007E | Tilde |
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
- ∂ Partial Derivative Symbol: previous page
- ☎ Telephone Symbol: next page
- Symbols to copy and paste: the full list