Skip to content

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 pointU+007C
Decimal124
HTML named entity|
HTML (hex)|
HTML (decimal)|
CSS\007C
JavaScript\u007C
Python\u007C
UTF-8 bytes7C
UTF-16007C
URL-encoded%7C

Character details

Official nameVERTICAL LINE
Unicode blockBasic Latin
General categoryMath Symbol (Sm)
SymbolHero categoryMath Symbols
EmojiNo

How to type |

Windows

  • In Microsoft Word or Outlook: type 007C then 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)

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 |.