Backslash on Keyboard (\) — where it is & how to type it
Find the backslash key on US, UK, German, French and Mac keyboards, type it with Alt 92 on Windows, or tap below to copy it.
Where is the backslash key?
It depends on your keyboard layout.
US keyboard — above Enter
On US keyboards, the \ key sits between ] and Enter (sometimes one row lower, right above Enter). Shift + \ types |.
UK keyboard — left of Z
On UK keyboards, the \ key is between the left Shift and Z. Shift + \ types |.
Backslash & Related Symbols
Click any symbol to copy it.
How to type a backslash on every keyboard
Find your device or layout.
| Keyboard / device | How to type \ |
|---|---|
| US (Windows) | Key above or next to Enter |
| UK (Windows) | Key left of Z, next to left Shift |
| German (QWERTZ) | AltGr + ß |
| French (AZERTY) | AltGr + 8 |
| Spanish | AltGr + º (key left of 1) |
| Any Windows PC | Alt + 92 on the numeric keypad |
| Mac (US) | \ key above Return |
| Mac (German) | ⌥ + ⇧ + 7 |
| iPhone & iPad | 123 › #+= › \ |
| Android (Gboard) | ?123 › =\< › \ |
| Chromebook / Linux | Ctrl + Shift + U, then 5c and Enter |
Backslash vs forward slash
They lean in opposite directions and do different jobs.
| Symbol | Name | Used for |
|---|---|---|
| \ | Backslash leans back · U+005C | Windows file paths (C:\Users), escape codes in programming (\n, \t), regular expressions. |
| / | Forward slash leans forward · U+002F | Website addresses (https://), Mac/Linux paths, fractions (1/2), “and/or”. |
Common uses — copy an example
Tap to copy the whole thing.
Backslash key not working?
Quick fixes for the most common problems.
Frequently asked questions
Quick answers about the backslash.
Where is the backslash key on a keyboard?
On US keyboards it is above or next to Enter. On UK keyboards it is to the left of Z. It usually shares the key with the vertical bar |.
What is the Alt code for backslash?
Hold Alt and type 92 on the numeric keypad.
How do I type a backslash on a German or French keyboard?
German: AltGr + ß. French AZERTY: AltGr + 8.
Why does my backslash look like ¥ or ₩?
Japanese and Korean fonts show the backslash character as the yen or won sign. It is the same character, so paths and code still work.
What is the difference between backslash and forward slash?
The backslash (\) leans back and is used in Windows paths and code. The forward slash (/) leans forward and is used in web addresses and fractions.
What is the backslash also called?
Its official name is “reverse solidus”. People also call it a backslant, backwhack or simply “slash back”.
Related guides
More keyboard help and symbols.