Backslash “\” on the keyboard: how to type it
Quick answer
On a US keyboard, “\” has its own key: \. Same on a Mac.
\
Also called: reverse solidus, backward slash.
All ways to type “\”
PC, laptop, Mac, phone or code – pick what you have in front of you.
Windows · US keyboard
\
Alt code (numeric keypad)
Alt+92
Type Alt codes with the numbers on the numeric keypad while holding the left Alt key.
Mac · US keyboard
\
Linux · US keyboard
\
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+Q
Windows · German (QWERTZ)
AltGr+ß
Windows · French (AZERTY)
AltGr+8
HTML and Unicode
\U+005CFor web pages and apps that can insert a character by its code.Keys and fingers
Press \ with your right little finger.
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.
Backslashthis page
\
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)
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?
It separates folders in Windows paths (C:\Users) and starts escape sequences in code (\n).
How do I type “\” on a Mac?
On a Mac with a US keyboard: \.
How do I type “\” on a phone?
On iPhone and iPad, tap 123 → #+= → \. On Android with Gboard, tap ?123 → =\< → \.