Keyboard keys · guide

Where is the Pipe key?

Shift+\ on the key above Enter (US). UK keyboards put | on Shift plus the key left of Z, and the broken bar ¦ on Alt Gr+`.

|¦

At a glance
Full-size keyboard
Shift+\ on the key above Enter (US).
Laptop
Shift+\; on UK laptops Shift plus the key next to the left Shift.
Mac
Shift+\ above return on US Macs.

Pipe key location

Pipe key on a full-size keyboard Esc F1 F2 F3 F4 F5 F6 F7 F8 F9 F10 F11 F12 SysRq PrtSc Lock Scroll Break Pause ~ ` 1 2 3 4 5 6 7 8 9 0 _ - + = Backspace Insert Home Up Page Lock Num / * - Tab Q W E R T Y U I O P { [ } ] | \ Delete End Down Page Home 7 ↑ 8 PgUp 9 + Caps Lock A S D F G H J K L : ; " ' Enter ← 4 5 → 6 Shift Z X C V B N M < , > . ? / Shift ↑ End 1 ↓ 2 PgDn 3 Enter Ctrl Win ⊞ Alt Gr Alt Win ⊞ Menu ≡ Ctrl ← ↓ → Ins 0 Del .
Full-size Windows keyboard (ANSI 104-key) Backslash / pipe

Shift+\ on the key above Enter (US). UK keyboards put | on Shift plus the key left of Z, and the broken bar ¦ on Alt Gr+`.

What the Pipe key does

The pipe | chains commands in terminals (ls | grep), means "or" in programming (a || b), and separates columns in Markdown tables. The broken bar ¦ on UK keyboards is a different character (U+00A6) and will not work in commands.

On a Mac

Shift+\ above return.

On a laptop

Same rule as the backslash: US above Enter, UK next to left Shift.

Shortcuts that use the Pipe key

ShortcutWhat it does
Shift+\Pipe |
Alt+124Pipe via Alt code
Alt Gr+` (UK)Broken bar ¦, not the pipe
Ctrl+Shift+\ (VS Code)Jump to matching bracket

If the Pipe key is missing or not working

If commands fail with a "¦" in them, you typed the broken bar (UK Alt Gr+`) instead of the pipe (Shift+\). Test the key below.

Test it here: click the tester, press the key, and it should light up green. A red key is stuck; a key that never lights up is dead or intercepted by the system. The full keyboard tester has the press log and more detail.

0 keys tested

Click the tester, then press any key. Browser shortcuts are blocked while it has focus.

Keyboard tester (windows) Esc F1 F2 F3 F4 F5 F6 F7 F8 F9 F10 F11 F12 SysRq PrtSc Lock Scroll Break Pause ~ ` 1 2 3 4 5 6 7 8 9 0 _ - + = Backspace Insert Home Up Page Lock Num / * - Tab Q W E R T Y U I O P { [ } ] | \ Delete End Down Page Home 7 ↑ 8 PgUp 9 + Caps Lock A S D F G H J K L : ; " ' Enter ← 4 5 → 6 Shift Z X C V B N M < , > . ? / Shift ↑ End 1 ↓ 2 PgDn 3 Enter Ctrl Win ⊞ Alt Gr Alt Win ⊞ Menu ≡ Ctrl ← ↓ → Ins 0 Del .
Full-size Windows keyboard (ANSI 104-key) Hover or tap a key
Last key

—

key
—
code
—
keyCode
—
Held right now

none

Max at once: 0 (rollover)

Stuck keys

None detected. A key held for more than 2 seconds is flagged.

Frequently asked questions

How do I type the pipe symbol? +

Shift+\ (the backslash key). On UK keyboards the key is next to the left Shift.

Why does my pipe look broken (¦)? +

That is the broken bar, a different character on UK keyboards under Alt Gr+`. Use Shift+\ for the real pipe.

What is the pipe symbol used for? +

Chaining commands in terminals, logical OR in code (||), and column separators in Markdown tables.

Every key

Where is the… key?

Keyboard keys hub →
✓ Copied to clipboard