ASCII code for backslash
92
Reverse solidus — \
| Decimal | 92 |
| Hexadecimal | 0x5C |
| Octal | 0134 |
| Binary | 01011100 |
| HTML entity | \ |
| String escape | \\ |
What it is
Reverse solidus is one of the 95 printable ASCII characters, the set every text encoding in common use still agrees on. UTF-8 encodes it as the single byte 92, which is why ASCII text is also valid UTF-8.
The full entry
ASCII 92 in full — the code point page, with what sits either side of it and how the character is encoded elsewhere.
Frequently asked questions
What is the ASCII code for backslash?
The ASCII code for backslash is 92 in decimal, 0x5C in hexadecimal and 0134 in octal.
What is backslash in binary?
01011100 — eight bits, though ASCII only defines seven, so the top bit is always zero.
How do I write backslash in a string?
Most languages accept the escape \\. Writing the raw character instead works in some contexts and breaks in others, which is what the escape exists to avoid.
Other characters
- ASCII code for right bracket — 93
- ASCII code for caret — 94
- ASCII code for underscore — 95
- ASCII code for backtick — 96
- ASCII code for lowercase a — 97
- ASCII code for lowercase b — 98
- ASCII code for lowercase c — 99
- ASCII code for lowercase d — 100
- ASCII code for lowercase e — 101
- ASCII code for lowercase f — 102
- ASCII code for lowercase g — 103
- ASCII code for lowercase h — 104
Every character by name · The ASCII table · Text to binary converter