Toolman

ASCII code for forward slash

47

Solidus — /

Decimal47
Hexadecimal0x2F
Octal0057
Binary00101111
HTML entity/

What it is

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 47, which is why ASCII text is also valid UTF-8.

The full entry

ASCII 47 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 forward slash?

The ASCII code for forward slash is 47 in decimal, 0x2F in hexadecimal and 0057 in octal.

What is forward slash in binary?

00101111 — eight bits, though ASCII only defines seven, so the top bit is always zero.

Is forward slash a printable character?

Yes. Solidus is in the printable range, codes 32 to 126, which is everything ASCII can put on a screen.

Other characters

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