The backslash symbol (\) is different from the forward slash /. On a standard U.S. keyboard layout, press the key marked \ without Shift. Its physical position varies by keyboard, and some international layouts require a modifier key.
Quick answers: how to type a backslash
- U.S. Windows keyboard: press the \ key without Shift. It commonly shares a key with |.
- U.S. Mac input source: use the key marked \ without Shift.
- Other layouts: inspect the On-Screen Keyboard on Windows or Keyboard Viewer on Mac.
- Word for Windows: type 005C, select the code, and press Alt + X.
- Phone or tablet: check the additional symbols keyboard, or copy and paste \.
Copy and paste the backslash symbol (\)
Backslash versus forward slash
| Character | Name and code | Example |
|---|---|---|
| \ | Backslash / REVERSE SOLIDUS, U+005C | C:\Users\Example |
| / | Forward slash / SOLIDUS, U+002F | https://example.com/page/ |
A backslash runs from the upper left to the lower right. A forward slash runs from the lower left to the upper right. They are separate characters in the Unicode Basic Latin chart (PDF). When following technical instructions, copy the direction shown rather than treating the two marks as interchangeable.
How to type a backslash on Windows
Use the backslash key
- Click in a text field.
- Locate the key marked \. On many U.S. keyboards it is near Enter.
- Press the key without Shift.
- Check that the result is \, not / or |.

On a U.S. layout, Shift with this key types |. If the key looks different on your laptop, check the active input layout rather than copying a shortcut for another language.
Find the character with the On-Screen Keyboard
Press Windows + Ctrl + O to open the On-Screen Keyboard. Look for the backslash and inspect modifier keys if your layout places it on another level. You can select keys using a pointing device. Microsoft documents the shortcut in its keyboard accessibility guide.
Check your active input layout
If the key types something different from its label, check the taskbar’s input indicator. Windows + Space switches between installed layouts. Microsoft’s keyboard-layout guide shows how to select one.
Use the Windows Alt code: Alt + 92
With a numeric keypad, hold Alt, type 92 on the keypad, then release Alt. Enable Num Lock if needed. Microsoft lists Alt + 92 for backslash. If your app doesn’t accept it, use the normal key or Word’s method below.
How to type a backslash on Mac
With a standard U.S. input source, press the backslash key without Shift. If your keyboard does not show it or the result is different, use Keyboard Viewer:
- Open the Input menu → Show Keyboard Viewer.
- Inspect the current layout.
- Hold Option or Shift to display additional characters.
- Use the key combination that shows \ for your input source.
Use the combination shown for your input source; there isn’t one Option-key shortcut that works on every Mac layout. See Apple’s Keyboard Viewer guide if you need help opening it.
How to insert a backslash in Word
Use your normal keyboard key or paste \ into the document. In Word for Windows, you can also type 005C, select just that code, and press Alt + X. It converts to a backslash without using a numeric keypad.

Select only 005C so Word doesn’t include nearby letters or numbers. This conversion works in Word for Windows, as described in Microsoft’s Unicode instructions.
How to enter a backslash in Google Docs
Type it with the keyboard method for your layout, or paste \. On a computer, you can also choose Insert → Symbols → Special characters and find the Unicode value 005C. Select the matching character to insert it.
Choose the backslash, not the forward slash. Google’s special-character guide covers the desktop picker. In the mobile app, copy and paste if the menu isn’t available.
How to type a backslash on iPhone and Android
Open your keyboard’s numbers and symbols screen, then check its additional symbols page. Controls may be labeled 123, ?123, #+=, or something similar. The exact location depends on the keyboard app and language.
Can’t find it on your phone? Copy \ above, touch and hold the destination field, and tap Paste. Check its direction before using it in a file path.
Using backslashes in Windows paths and code
Windows file paths
A path such as C:\Users\Example\Documents uses backslashes to separate components. The backslashes are separators, not part of each folder’s name. Microsoft’s file and path naming documentation explains these conventions.
Copy the complete path carefully. A correctly typed backslash won’t fix a misspelled folder name or a path that doesn’t exist.
Backslashes inside code strings
In many programming languages, backslashes introduce escape sequences. A code example may therefore show two backslashes where the displayed text contains one. Follow the rules for the language and string type you’re using.
Backslash not working? Common fixes
The key types | instead
On a standard U.S. layout, release Shift and try the same key again. If another modifier appears stuck, check its state with an on-screen viewer. If the key still differs from its label, check the input layout.
The key types another symbol
Confirm which keyboard layout is active. External keyboards, remote desktops, and different language settings can use different mappings. Compare the result in a plain text editor to see whether the issue occurs everywhere or only in one application.
A form rejects the pasted backslash
A field asking for a file name may reject a complete path. Follow the form’s instructions rather than replacing the backslash with a different character.
Backslash codes and frequently asked questions
What is the character code for a backslash?
Its Unicode code point is U+005C, with the name REVERSE SOLIDUS. Its ASCII decimal value is 92. In HTML source, \ and \ represent the same character.
Can I type a backslash without a numeric keypad?
Yes. The normal backslash key does not require one. You can also copy the character, use an on-screen keyboard, or use Word’s Unicode conversion. These options are useful on smaller laptops.
Is a backslash the same as a division sign?
No. Backslash \, forward slash /, and division sign ÷ are separate characters. Use the character required by your document or application rather than substituting a visually similar mark.
Find more characters in our punctuation collection and keyboard symbol collection.