Toolman

ASCII 56

ASCII 56 is Digit 8, written 8.

Every representation

Character8
NameDigit 8
Decimal56
Hexadecimal0x38
Octal0070
Binary00111000
HTML entity8
Escape sequence\x38
UnicodeU+0038
GroupDigit

What it is for

The digit 8. The digits occupy 48 to 57, so subtracting 48 from a digit's code gives its numeric value — the oldest trick in character handling.

Where the number comes from

The digits were placed at 48 to 57 so that 0 through 9 are contiguous and the low four bits of each code are the digit's own value: 56 in binary is 00111000, and the last four bits are 1000, which is 8.

Frequently asked questions

What is ASCII 56?

Digit 8, the character 8. In hexadecimal it is 0x38, in octal 0070, and in binary 00111000.

How do I type ASCII 56?

Type 8 directly. In a string literal it can also be written \\x38, and in HTML as 8.

Is ASCII 56 printable?

Yes. Codes 32 to 126 are the printable range, which is every character ASCII can actually display.

Nearby codes

Full ASCII table · Text to binary converter · Number base converter