Typing Peak

Vertical bar (pipe) “|” on the keyboard: how to type it

Quick answer

In Windows on a US keyboard, you type “|” with Shift + \. Same on a Mac.

Shift+\

Also called: pipe, vertical line.

All ways to type “|”

PC, laptop, Mac, phone or code – pick what you have in front of you.

Windows · US keyboard
Shift+\
Alt code (numeric keypad)
Alt+124 Type Alt codes with the numbers on the numeric keypad while holding the left Alt key.
Mac · US keyboard
Shift+\
Linux · US keyboard
Shift+\
Android (Gboard)
?123 then =\< then | Switch to the symbols and tap the character.
iPhone and iPad
123 then #+= then | Switch to the symbols and tap the character.
Windows · Czech (QWERTZ)
AltGr+W
Windows · German (QWERTZ)
AltGr+<
Windows · French (AZERTY)
AltGr+6
HTML and Unicode
&#124;U+007CFor web pages and apps that can insert a character by its code.

Keys and fingers

Hold Shift with the little finger of the other hand. Press \ with your right little finger.

Press the highlighted keys for “|”.

Try it

Type “|” five times in a row.

0 of 5

Everything stays on this page, nothing is saved.

Don’t mix them up

Similar characters, different keys.

Backslash \ It separates folders in Windows paths (C:\Users) and starts escape sequences in code (\n). Slash / It separates parts of web addresses, means "or" in text (and/or) and divides in maths.
Vertical bar (pipe)this page Shift+\ On the command line it passes the output of one command to the next; in code it is a logical OR. It also works as a separator.

Questions

What is “|” used for?

On the command line it passes the output of one command to the next; in code it is a logical OR. It also works as a separator.

How do I type “|” on a Mac?

On a Mac with a US keyboard: Shift + \.

How do I type “|” on a phone?

On iPhone and iPad, tap 123 → #+= → |. On Android with Gboard, tap ?123 → =\< → |.

Typing for programmersBrackets, symbols and real code

Language and keyboard

Switching the language also switches the course and the keyboard. Your progress in every language is kept.

Write to us

An idea, a bug or a question? We read every message.

What is it about?
Only the operator sees your message. More in the privacy policy

Theme

Hover to preview a look, click to use it.Tap a look and you will see it right away.

Light

Colourful

Dark

The look is saved in this browser.