Backslash Symbol
Copy the backslash (\) and find its Unicode value, Alt code, and how it works as an escape character in code and Windows paths.
The backslash is \ (U+005C, reverse solidus).
Use the Backslash Symbol
Backslash Symbol
Click the symbol to copy it
Formats
Click any row to copy that exact string.
Keyboard Shortcuts
| System / layout | Shortcut | Notes |
|---|---|---|
| Windows (Alt code) | Hold Alt, type 92 on the numeric keypad. | |
| Windows (Unicode) | Same result using the 4-digit code. | |
| US keyboard (Win/Mac) | Its own key, just left of Enter on a US layout. | |
| UK keyboard | Separate key left of Z, smaller than the US Enter-side key. | |
| German keyboard | QWERTZ layouts place backslash on the ß key with AltGr. | |
| French AZERTY keyboard | The 8 key doubles as backslash with AltGr. | |
| Linux (GTK) | Type the hex code, then press Enter or Space. | |
| Microsoft Word | Type 005C then press Alt+X to convert it. |
Try it: escape a string
Paste a raw string (like a Windows path) and see the escaped version used in code, JSON, and regex.
Quick answer
The backslash is \ (U+005C, reverse solidus). On a US keyboard it has its own key above Enter, and on Windows Alt + 92 also types it. In code and JSON one backslash is written as \\, so C:\Users\name\Documents becomes C:\\Users\\name\\Documents.
Examples
| Where | How to type \ |
|---|---|
| US keyboard | Its own key, above Enter |
| UK keyboard (PC) | Key left of Z |
| German keyboard | AltGr + ß |
| French keyboard | AltGr + 8 |
| Windows Alt code | Alt + 92 |
| HTML | \ or \ |
| LaTeX | \textbackslash |
Paste a path into the Try it box.
Summary
The backslash (\) is Unicode U+005C and separates Windows path components or starts escape sequences in code and regex. Copy it or find its HTML, Alt, and keyboard codes.
How it works
- Click the large backslash to copy the plain character to your clipboard.
- Or click any row in the Formats list to copy that exact encoded form (Unicode, HTML entity, escape sequence).
- Check the keyboard shortcut table for your OS and keyboard layout to find the physical key.
- Use the "Try it" box to see how a raw string escapes when it contains a backslash.
Use cases
- Copy a Windows file path separator without an editor turning it into an emphasis marker.
- Insert the escape character for a newline (\n), tab (\t), or literal backslash (\\) in code.
- Type backslash on a keyboard layout where it is not next to Enter, such as UK or German.
- Escape a backslash inside a regular expression so it matches a literal character.
- Insert the HTML entity when a raw backslash gets mangled by a text filter.
- Look up the Alt code for pasting into legacy software that blocks copy-paste.
- Check whether a path string needs its backslashes doubled before use in JSON or a shell command.