Toolman

ASCII code for backslash

92

Reverse solidus — \

Decimal92
Hexadecimal0x5C
Octal0134
Binary01011100
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

Every character by name · The ASCII table · Text to binary converter