Skip to content

How to Type Pipe Symbol (|) on Any Device

Instant one-click copy, complete keyboard shortcuts for Windows and Mac, Microsoft Word Alt+X conversion, mobile keypad methods, and developer code entities.

|Click to copy
U+007CVERTICAL LINE|

Pipe Symbol

One-click clipboard copy, complete keyboard shortcuts, and developer codes below.

Related Symbols:

Quick Reference Matrix

Instant shortcuts for every operating system and office application.

Auto-detected for your OS
PlatformShortcut / MethodAction
WinWindows
Alt + 124
macOSMac
Shift + \
WordMicrosoft Word
007C, Alt+X (type code, press Alt+X)
DocsGoogle Docs
Insert → Special characters → search “vertical line”
WebHTML Entity
|
HexUnicode Codepoint
U+007C
iOSiPhone & iPad
Tap ?123, then #+=, then tap |
PhoneAndroid
Tap ?123, then =\<, then tap |
LinuxLinux
Ctrl+Shift+U, 007C

How to Type Pipe Symbol on Windows

Compatible with Windows 11, Windows 10, and earlier editions

Method 1: Numeric Keypad Alt Code

  1. Verify that Num Lock is enabled on your keyboard (a status light usually indicates this).
  2. Press and hold the Alt key (either left or right Alt).
  3. While holding Alt, type the code 124 on the separate numeric keypad on the right.
  4. Release the Alt key. The character | will appear immediately.
Important Note: You must use the dedicated 10-key numeric keypad. Numbers typed on the top horizontal number row will not generate Alt codes.

Method 2: Windows Emoji & Symbol Panel

Press Windows + . (period) or Windows + ; (semicolon) to open the native Windows Symbol Palette. Select the Symbols tab (the omega icon Ω), then click | to insert it into any application.

Method 3: On Laptops Without a Number Pad

If your laptop lacks a dedicated physical numeric keypad, turn on the virtual numeric keypad by pressing Fn + NumLk, or open the On-Screen Keyboard by typing osk in the Windows search bar. Alternatively, click the Copy | button at the top of this guide.

How to Type Pipe Symbol on Mac (macOS)

Tested on macOS Sequoia 15, Sonoma 14, and Ventura 13

Method 1: Direct Keyboard Shortcut

Hold Shift + \ simultaneously on your Mac keyboard. The symbol | will be inserted immediately.

Method 2: macOS Character Viewer (Emoji & Symbols)

  1. Press Control + Command + Space in any text field to invoke the Character Viewer.
  2. Type "Pipe Symbol" or the hex code U+007C in the top search bar.
  3. Double-click the | symbol to insert it at your cursor position.
W

In Microsoft Word & Google Docs

Document formatting and special character tools

Microsoft Word: The Alt+X Hex Shortcut

Word supports instant hexadecimal Unicode conversion:

  1. Type the hexadecimal code 007C into your Word document.
  2. Immediately press Alt + X without adding a space.
  3. Word will automatically convert 007C into |.

Google Docs: Special Characters Palette

In Google Docs, go to Insert → Special characters. In the search box on the right, type "Pipe Symbol", or draw the symbol in the sketch box. Clicking the symbol inserts it into your document.

On iPhone, iPad & Android

Touchscreen keyboard tips and text replacement

iOS (iPhone & iPad)

Tap ?123, then #+=, then tap |. For accented letters or numbers, press and hold the base key on your virtual keyboard until the flyout menu appears, then slide your thumb onto |.

Android (Gboard & Samsung Keyboard)

Tap ?123, then =\<, then tap |. You can also add | to your personal keyboard dictionary under Settings → System → Languages & input → Personal dictionary.

For Developers: HTML, CSS & Code Snippets

Unicode codepoints, entities, and programming escapes

HTML Entity (Named)&#124;
HTML Decimal Code&#124;
CSS Content Escapecontent: "\7C";
JavaScript / TypeScript"\u{007C}"
Python Escape"\u007C"
Unicode CodepointU+007C
ℹ

About Pipe Symbol (|)

History, typographic usage standards, and Unicode block

The pipe (|, U+007C, officially VERTICAL LINE) chains commands in terminals and means logical OR in code. Its key hides above Enter sharing with backslash — Shift+\ on US layouts — which is why newcomers can see it but not type it.

In standard typography and document styling, symbols and accents should adhere to standard spacing guidelines. When typing numbers or equations, avoid confusing lookalike characters (such as confusing the letter "x" with the true multiplication operator "×", or using a degree symbol "°" in place of a superscript zero "⁰").

Official Unicode Reference:

Registered as VERTICAL LINE at codepoint U+007C within the Unicode Standard. Consult the official Unicode Basic Latin specification chart (PDF via unicode.org).

?

Frequently Asked Questions

Common questions about typing and formatting Pipe Symbol

What is the fastest way to copy Pipe Symbol (|)?

Use the copy button at the top of this page. It places | on your clipboard so you can paste it anywhere with Ctrl + V on Windows or Cmd + V on Mac.

What is the Windows Alt code for |?

Hold Alt and type 124 on the numeric keypad with Num Lock on. The row of numbers above the letters will not work — it has to be the keypad.

How do I type | on a Mac?

Press Shift + \ anywhere in macOS to produce |.

How do I type | in Microsoft Word?

Type 007C, Alt+X in Word — enter the code, then press Alt + X and Word converts it into |.

Why does | not appear when I press the keys?

The usual causes are Num Lock being off for Alt codes, a keyboard layout that does not match the shortcut you are using, or an app that intercepts the key combination. Try the copy button first to confirm the character itself displays correctly on your system.

How do I write | in HTML or CSS?

In HTML use &#124;, or paste | directly into a UTF-8 page. In CSS content values use \7C.

Is | also called a pipe symbol?

Yes. Pipe Symbol is known by several names, including pipe symbol, vertical bar, or symbol. Its official Unicode name is VERTICAL LINE at U+007C.

⚡

Looking for more symbols, emojis, and arrows?

Use our flagship Copy Paste Symbols Studio — browse 1,286+ aesthetic glyphs across 26 categories with instant 1-click copy, live multi-symbol composer tray, and sound effects.

Open Symbols Studio
Quick copy:

Looking for a different character?

Search all symbols, accents, arrows, and alt codes in the live interactive picker.

Open Symbol Picker
Copy Paste Symbols →1,280+ symbols, arrows, hearts and moreAlt-Code Lookup →Enter any code, get the characterUnicode Inspector →Decode any character's codepoint

Last verified Sep 9, 2026 by Dr. Julian Vance · Tested on Windows 11 24H2 & macOS 15.1 · Editorial Methodology

Pipe Symbol
Tray
Copied to clipboard!
Ready to paste anywhere