ASCII code for cancel
24
Cancel — a control character, not printable
| Decimal | 24 |
| Hexadecimal | 0x18 |
| Octal | 0030 |
| Binary | 00011000 |
| HTML entity |  |
What it is
Told the receiver to discard the data that came before it.
The full entry
ASCII 24 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 cancel?
The ASCII code for cancel is 24 in decimal, 0x18 in hexadecimal and 0030 in octal.
What is cancel in binary?
00011000 — eight bits, though ASCII only defines seven, so the top bit is always zero.
Is cancel a printable character?
No. Cancel is a control character — an instruction to a teleprinter rather than a mark on paper, which is why most tables show an empty cell for it.
Other characters
- ASCII code for end of medium — 25
- ASCII code for substitute — 26
- ASCII code for escape — 27
- ASCII code for file separator — 28
- ASCII code for group separator — 29
- ASCII code for record separator — 30
- ASCII code for unit separator — 31
- ASCII code for space — 32
- ASCII code for exclamation mark — 33
- ASCII code for double quote — 34
- ASCII code for hash — 35
- ASCII code for dollar sign — 36
Every character by name · The ASCII table · Text to binary converter