ASCII code for the digit 1
49
Digit 1 — 1
| Decimal | 49 |
| Hexadecimal | 0x31 |
| Octal | 0061 |
| Binary | 00110001 |
| HTML entity | 1 |
What it is
Digit 1 is one of the 95 printable ASCII characters, the set every text encoding in common use still agrees on. UTF-8 encodes it as the single byte 49, which is why ASCII text is also valid UTF-8.
The full entry
ASCII 49 in full — the code point page, with what sits either side of it and how the character is encoded elsewhere.
Frequently asked questions
What is the ASCII code for the digit 1?
The ASCII code for the digit 1 is 49 in decimal, 0x31 in hexadecimal and 0061 in octal.
What is the digit 1 in binary?
00110001 — eight bits, though ASCII only defines seven, so the top bit is always zero.
Is the digit 1 a printable character?
Yes. Digit 1 is in the printable range, codes 32 to 126, which is everything ASCII can put on a screen.
Other characters
- ASCII code for the digit 2 — 50
- ASCII code for the digit 3 — 51
- ASCII code for the digit 4 — 52
- ASCII code for the digit 5 — 53
- ASCII code for the digit 6 — 54
- ASCII code for the digit 7 — 55
- ASCII code for the digit 8 — 56
- ASCII code for the digit 9 — 57
- ASCII code for colon — 58
- ASCII code for semicolon — 59
- ASCII code for less than sign — 60
- ASCII code for equals sign — 61
Every character by name · The ASCII table · Text to binary converter