| Symbol Name | Vertical Line |
| Unicode Version | 1.1 |
| Unicode | U+007C |
| Unicode block | |
| General category | Math Symbol (Sm) |
| CSS Code | \007C |
| Hex Code | 0x007C |
| HTML Code | | |
| LaTeX | | |
| Symbol | | |
| URL encode (UTF-8 percent) | %7C |
| Spoken / screen reader name | Vertical Line |
| UTF-8 | 7C |
| UTF-16 | 007C |
| UTF-32 | 0000007C |
1\documentclass{article}2\usepackage{pifont}3|4\end{document}You can type the vertical line symbol on most modern devices with the help of following methods:
Alt + 124 on Windows (numeric keypad with Num Lock), or insert via Character Map.
Edit → Emoji & Symbols, search "vertical line", or use Unicode Hex Input with 007C.
Ctrl + Shift + U, type 007c, then Enter (layout-dependent).
Paste from this page, use text replacement, or pick from the symbol keyboard.
Paste from this page or use a keyboard with geometric symbol support.
1span.vertical-line::before { content: "\007C"; }1<span>|</span>Vertical Line symbol's representation in different programming languages can be found in the table below:
| Language | Representation |
|---|---|
| JavaScript / TypeScript | '\u007C' or String.fromCodePoint(124) |
| Python | '\N{VERTICAL LINE}' or chr(124) |
| Rust | '\u{007C}' |
| C / C++ | UTF-8 source or wchar_t with U+007C |
| Go | string(rune(0x007C)) |
| Ruby | "\u{007C}" |