U+007C · Basic Latin
Vertical Line |
Vertical Line is the Unicode character U+007C (official name “VERTICAL LINE”) from the Basic Latin block. It belongs to SymbolHero’s math symbols collection. Copy it with the button, or use the codes and keyboard methods below to type it yourself.
UnicodeU+007C
HTML|
|U+007C
Character codes
| Unicode code point | U+007C | |
|---|---|---|
| Decimal | 124 | |
| HTML named entity | | | |
| HTML (hex) | | | |
| HTML (decimal) | | | |
| CSS | \007C | |
| JavaScript | \u007C | |
| Python | \u007C | |
| UTF-8 bytes | 7C | |
| UTF-16 | 007C | |
| URL-encoded | %7C |
Character details
| Official name | VERTICAL LINE |
|---|---|
| Unicode block | Basic Latin |
| General category | Math Symbol (Sm) |
| SymbolHero category | Math Symbols |
| Emoji | No |
How to type |
Windows
- In Microsoft Word or Outlook: type
007Cthen press Alt + X. - Open Character Map (search “Character Map” in Start), tick “Advanced view”, search for “vertical line”, then Select and Copy.
Mac
- Press Control + Command + Space to open the Character Viewer, search “vertical line”, and double-click the result.
- With the Unicode Hex Input keyboard enabled (System Settings → Keyboard → Input Sources), hold Option and type
007C.
iPhone & Android
- Tap Copy at the top of this page, then long-press where you want it and choose Paste.
Docs & web
- Google Docs: Insert → Special characters, then search “vertical line” or enter
U+007C. - HTML:
|or| - Excel / Google Sheets:
=UNICHAR(124)
Similar math symbols
Questions
What is the Unicode for |?
It is U+007C (VERTICAL LINE), decimal 124.
Is there a Windows Alt code for it?
No standard Alt code exists for this character. In Word type 007C then Alt+X, or copy it from this page.
How do I type it on a Mac?
There is no built-in Option shortcut. Use the Character Viewer (Control + Command + Space) and search “vertical line”, or copy it from this page.
What is the HTML code?
Use the named entity | or the numeric reference |.