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