HTTA is reader supported. When you buy through links on our site, we may earn an affiliate commission at no extra cost to you.ย Learn more.

Pipe Symbol | on Keyboard (Windows/Mac) + in Word/Excel

The pipe symbol (also called the vertical bar) looks like this: |.

People use it for things like:

  • Programming (pipes, OR logic, โ€œsend output to something elseโ€)
  • Spreadsheets (joining text, patterns, formulas)
  • Search filters (example: cats | dogs meaning โ€œeither oneโ€ in some tools)

This guide shows the fastest ways to type | on Windows and Mac, how to insert it in Word/Excel/Google Docs, and how to fix problems like โ€œmy keyboard keeps typing |โ€.


1-Minute Answer (fastest ways)

Fastest way to get this symbol is to copy/paste. you can use the copy tool below:

Pipe Symbol (Vertical Bar) โ€” Click to Copy
Click any button to copy the exact character (pipe vs slashes vs look-alikes).
Ready.

Main symbol

This is the pipe |

Common confusions

Copy the exact one you need

Windows (keyboard): On many keyboards, this symbol | is on the same key as the backslash \.
Try: Shift + \ (this can vary by keyboard layout).

Windows (reliable fallback): Use Character Map (search for โ€œvertical lineโ€, โ€œvertical barโ€, or โ€œpipeโ€).

Mac (US keyboard): On a US Mac layout, try: Shift + \.
If it doesnโ€™t work, itโ€™s usually a keyboard layout difference โ€” use Character Viewer:

  • Press Control + Command + Space
  • Search: vertical line, vertical bar, or pipe
  • Double-click to insert

Microsoft Word / Excel (reliable): Insert โ†’ Symbol (works even when your keyboard layout is confusing)

Google Docs: Insert โ†’ Special characters, then search pipe / vertical line / vertical bar

Mobile (iPhone/Android): Easiest reliable method: copy/paste |


Quick Reference (Pipe vs look-alikes)

SymbolNameLooks likeGet it on WindowsGet it on MacOSNotes (Word/Docs)
|Pipe / Vertical barOne straight vertical lineUsually Shift + \ (layout-dependent) or copy/pasteUS layout: usually Shift + \ or Character ViewerWord: Insert โ†’ Symbol. Docs: Insert โ†’ Special characters (search โ€œpipeโ€)
\BackslashLeans leftOften the same key as | (without Shift)Often the same key as | (without Shift)Common confusion: | and \ are often on the same key
/Forward slashLeans rightDedicated key on most keyboards (also on many numpads)Dedicated key on most keyboardsNot the same as backslash \
โ€–Double vertical lineTwo vertical lines (single character)Copy/paste or Character MapCharacter Viewer or copy/pasteDifferent from typing || (two separate pipes)

Step-by-step methods (Windows, Mac, Word, Excel, Docs, Mobile)

A) Windows

Method 1: Find the pipe key (where it usually is)

  1. Look for the key that also has a backslash \ on it.
  2. On many keyboards, \ is the normal key, and | is the Shift version.
  3. Try: Shift + \.

Tip: On many US keyboards, that key is near the Enter key. On some laptops, it may be smaller or placed slightly differently.

Method 2: Copy/paste (works everywhere)

  1. Copy this: |
  2. Paste with Ctrl + V.

Method 3: Character Map (most reliable when the key is missing)

  1. Click Start and search Character Map.
  2. Open it.
  3. Use the search (or browse) and look for:
    • vertical line
    • vertical bar
    • pipe
  4. Select the symbol, click Copy, then paste where you need it.
copy and paste Pipe Symbol

Method 4: Alt code (only if you already use Alt codes successfully)

Pipe Symbol keyboard shortcut

Alt codes can be inconsistent across apps and keyboards (especially on laptops without a true number pad).
If Alt codes donโ€™t work on your setup, use Character Map instead.


B) Mac

Method 1: US keyboard (fast)

  1. Try: Shift + \ (this is the common US layout).

Method 2: Character Viewer (works on every Mac layout)

  1. Press Control + Command + Space.
  2. Search: vertical line, vertical bar, or pipe.
  3. Double-click the symbol to insert it.

Note: If youโ€™re using a UK or other layout, the key position can differ โ€” Character Viewer is the safest method.


C) Microsoft Word (strongest section)

Method 1: Insert it from Wordโ€™s Symbol library (most reliable)

  1. Open Word and click where you want the symbol.
  2. Go to Insert tab.
  3. Click Symbol (usually on the right).
  4. Choose More Symbolsโ€ฆ
  5. Scroll through symbols until you find | and click Insert.
  6. Click Close.
insert Pipe Symbol or vertial bar in Word

Tip: If you canโ€™t see it easily, try changing the Font inside the Symbol dialog (some fonts make | look like a thin line thatโ€™s easy to miss).

Method 2: Make it easy next time (optional)

If you use | often in Word, you can set up a simple text replacement:

  1. Go to File โ†’ Options โ†’ Proofing โ†’ AutoCorrect Optionsโ€ฆ
  2. In โ€œReplaceโ€, type something memorable (example: |pipe or ppipe).
  3. In โ€œWithโ€, paste |.
  4. Click Add, then OK.

(Choose a replacement youโ€™ll never type by accident.)


D) Excel

Method 1: Type it (if you find the key)

  1. Click a cell.
  2. Try Shift + \ (layout-dependent).

Method 2: Insert Symbol (reliable)

  1. Go to Insert.
  2. Look for Symbol (availability can vary by Excel version).
  3. Insert | from the symbol list.

Method 3: Copy/paste (best for formulas and text)

  1. Copy | from this page.
  2. Paste into your cell or formula.

E) PowerPoint

  1. Click inside a text box.
  2. Go to Insert โ†’ Symbol (or Insert โ†’ Symbols depending on version).
  3. Find | and insert.

F) Google Docs + Google Sheets

Google Docs

  1. Go to Insert โ†’ Special characters.
  2. Search: pipe, vertical line, or vertical bar.
  3. Click the symbol to insert.

Google Sheets

  • | is a normal character, so copy/paste works perfectly inside cells.
  1. Copy |
  2. Paste into a cell (or into a formula/text).

G) iPhone + Android

Best reliable method: copy/paste |

If you want to find it on a keyboard:

  • Many mobile keyboards hide extra symbols behind:
    • ?123 (numbers/symbols)
    • then #+= (more symbols)
  • If you canโ€™t find it quickly, copy/paste is faster.

H) Chromebook (short)

  1. Copy | from this page.
  2. Paste with Ctrl + V.

If youโ€™re using an external keyboard, try Shift + \ (layout-dependent).


What the pipe symbol is used for (simple examples)

  • Programming: Often means โ€œORโ€ in some languages, or โ€œpipe output into another commandโ€ in terminals.
  • Spreadsheets: Used in some formulas or text patterns, and often used as a โ€œdividerโ€ character in data like: Name|Department|ID.
  • Search filters: In some tools it means โ€œeither/orโ€, like: report | invoice.

Common confusion (quick fixes)

| vs \ vs /

  • | = straight up and down
  • \ = leans left
  • / = leans right

A lot of keyboards put | and \ on the same key, which is why theyโ€™re mixed up.

| vs I vs l (fonts problem)

In some fonts:

  • | (pipe)
  • I (capital i)
  • l (lowercase L)

โ€ฆcan look very similar.

Fix: switch to a clear font like Arial/Calibri, then check again.

|| vs โ€–

  • || = two pipe characters typed one after another
  • โ€– = a single character called โ€œdouble vertical lineโ€
    If you need the real โ€–, use Character Map / Character Viewer or copy/paste it.

Troubleshooting (strong fixes)

โ€œMy keyboard types | instead of lettersโ€

This is usually one of these:

  • A stuck key (physical problem)
  • A keyboard layout change
  • A shortcut/accessibility feature interfering
  • An app-specific setting (rare)

Try this, in order:

  1. Check if the | key is physically stuck
    • Press the key a few times.
    • If you spilled something, power off and clean carefully.
    • If you use an external keyboard, unplug it and test again.
  2. Restart your computer
    • Quick, boring, but it fixes a surprising number of keyboard glitches.
  3. Test in another place
    • Try typing in a different app (Notepad, a browser search box, etc.).
    • If it only happens in one app, the issue is likely inside that app (settings, macros, or replacements).
  4. Check your keyboard language/layout
    • If your keyboard layout changed (US/UK/other), keys can output different characters.
    • Switch back to your normal layout in your system language settings.
  5. Use an on-screen keyboard (quick diagnosis)
    • If the on-screen keyboard types normally but your physical keyboard doesnโ€™t, it points to a hardware issue (the keyboard itself).

โ€œI canโ€™t find the pipe key on my laptopโ€

Thatโ€™s common. Some laptops:

  • Make the \ | key smaller,
  • Move it near Backspace, Enter, or left Shift,
  • Or use a different layout entirely.

Fast fix:

  • Windows: Character Map โ†’ copy/paste
  • Mac: Character Viewer (Control + Command + Space) โ†’ search โ€œpipeโ€

โ€œAlt code doesnโ€™t workโ€

Common reasons:

  • Your keyboard has no numeric keypad
  • Num Lock is off
  • Youโ€™re typing numbers on the top row (that often wonโ€™t work for Alt codes)
  • The app youโ€™re using doesnโ€™t accept that input method

Fix: use Character Map / Character Viewer or Insert โ†’ Symbol (Word/Office).


โ€œIt keeps appearing every time I typeโ€

  1. Check if that key is stuck or being pressed accidentally.
  2. Disconnect any external keyboard or input device and test again.
  3. Confirm your keyboard layout didnโ€™t switch.
  4. If itโ€™s only happening in Word, check whether you set an AutoCorrect replacement by accident (you can remove it in AutoCorrect Options).

FAQ (quick answers)

Where is the pipe symbol on the keyboard?

On many keyboards, | is on the same key as the backslash \. You usually type it with Shift, but the exact position can vary by keyboard layout (US vs UK) and by laptop model.

How do I type | in Word?

Most reliable: Insert โ†’ Symbol โ†’ More Symbols, then select | and click Insert. If you can find the key, try Shift + \ (layout-dependent).

How do I type | in Excel?

Try Shift + \ (layout-dependent). If you canโ€™t find it, copy/paste | or use Insert โ†’ Symbol (if your Excel version shows Symbol).

Whatโ€™s the difference between | and \ ?

  • | is a vertical line (pipe)
  • \ is a backslash (leans left)
    Theyโ€™re often on the same key, which is why people mix them up.

Why does my keyboard keep typing the pipe symbol?

Most common causes are a stuck key or a keyboard layout change. Start by checking the key physically, restarting, and confirming your keyboard language/layout.


Quick recap

  • Fastest: copy/paste |
  • Keyboard: often Shift + \ (depends on layout)
  • Reliable everywhere: Windows Character Map, Mac Character Viewer
  • In Word: Insert โ†’ Symbol is the safest method
  • If it keeps appearing: check for a stuck key and layout changes