ASCII 57
ASCII 57 is Digit 9, written 9.
Every representation
| Character | 9 |
| Name | Digit 9 |
| Decimal | 57 |
| Hexadecimal | 0x39 |
| Octal | 0071 |
| Binary | 00111001 |
| HTML entity | 9 |
| Escape sequence | \x39 |
| Unicode | U+0039 |
| Group | Digit |
What it is for
The digit 9. 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: 57 in binary is 00111001, and the last four bits are 1001, which is 9.
Frequently asked questions
What is ASCII 57?
Digit 9, the character 9. In hexadecimal it is 0x39, in octal 0071, and in binary 00111001.
How do I type ASCII 57?
Type 9 directly. In a string literal it can also be written \\x39, and in HTML as 9.
Is ASCII 57 printable?
Yes. Codes 32 to 126 are the printable range, which is every character ASCII can actually display.
Nearby codes
- ASCII 50 — 2
- ASCII 51 — 3
- ASCII 52 — 4
- ASCII 53 — 5
- ASCII 54 — 6
- ASCII 55 — 7
- ASCII 56 — 8
- ASCII 58 — :
- ASCII 59 — ;
- ASCII 60 — <
- ASCII 61 — =
- ASCII 62 — >
- ASCII 63 — ?
- ASCII 64 — @
Full ASCII table · Text to binary converter · Number base converter