Toolman

ASCII 48

ASCII 48 is Digit 0, written 0.

Every representation

Character0
NameDigit 0
Decimal48
Hexadecimal0x30
Octal0060
Binary00110000
HTML entity0
Escape sequence\x30
UnicodeU+0030
GroupDigit

What it is for

The digit 0. 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: 48 in binary is 00110000, and the last four bits are 0000, which is 0.

Frequently asked questions

What is ASCII 48?

Digit 0, the character 0. In hexadecimal it is 0x30, in octal 0060, and in binary 00110000.

How do I type ASCII 48?

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

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