Toolman

ASCII code for the digit 6

54

Digit 6 — 6

Decimal54
Hexadecimal0x36
Octal0066
Binary00110110
HTML entity6

What it is

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

The full entry

ASCII 54 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 the digit 6?

The ASCII code for the digit 6 is 54 in decimal, 0x36 in hexadecimal and 0066 in octal.

What is the digit 6 in binary?

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

Is the digit 6 a printable character?

Yes. Digit 6 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