Toolman

ASCII 51

ASCII 51 is Digit 3, written 3.

Every representation

Character3
NameDigit 3
Decimal51
Hexadecimal0x33
Octal0063
Binary00110011
HTML entity3
Escape sequence\x33
UnicodeU+0033
GroupDigit

What it is for

The digit 3. 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: 51 in binary is 00110011, and the last four bits are 0011, which is 3.

Frequently asked questions

What is ASCII 51?

Digit 3, the character 3. In hexadecimal it is 0x33, in octal 0063, and in binary 00110011.

How do I type ASCII 51?

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

Is ASCII 51 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