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.
Backslash Symbol
Click the symbol to copy it
Formats
Character
\
Unicode
U+005C
HTML entity (decimal)
\
Escaped (string literal)
\\
CSS escape
\5c
URL encoded
%5C
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 / Spanish 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.
Copied!
Summary
Copy the backslash (\) and find its Unicode value, Alt code, and how it works as an escape character in code and Windows paths.
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.
Frequently Asked Questions
Last updated: 2026-07-22 ·
Reviewed by Nham Vu