ASCII 24
ASCII 24 is Cancel — the control character CAN.
Every representation
| Character | CAN (not printable) |
| Name | Cancel |
| Decimal | 24 |
| Hexadecimal | 0x18 |
| Octal | 0030 |
| Binary | 00011000 |
| HTML entity |  |
| Escape sequence | \x18 |
| Unicode | U+0018 |
| Keyboard | Ctrl+X |
| Group | Control character |
What it is for
Told the receiver to discard the data that came before it.
Where the number comes from
Codes 0 to 31 were reserved for control: instructions to a teleprinter rather than characters to print. Code 24 is Ctrl+X because the Ctrl key was originally wired to clear the top two bits of whatever you typed, mapping the letter X at 88 down to 24.
Frequently asked questions
What is ASCII 24?
Cancel (CAN), a control character. In hexadecimal it is 0x18, in octal 0030, and in binary 00011000.
How do I type ASCII 24?
Press Ctrl+X in a terminal. In a string literal you can write it as \\x18 in most languages.
Is ASCII 24 printable?
No. Codes 0 to 31 and 127 are control characters — they were instructions to a teleprinter rather than marks on paper, and most terminals show nothing for them.
Nearby codes
- ASCII 17 — DC1
- ASCII 18 — DC2
- ASCII 19 — DC3
- ASCII 20 — DC4
- ASCII 21 — NAK
- ASCII 22 — SYN
- ASCII 23 — ETB
- ASCII 25 — EM
- ASCII 26 — SUB
- ASCII 27 — ESC
- ASCII 28 — FS
- ASCII 29 — GS
- ASCII 30 — RS
- ASCII 31 — US
Full ASCII table · Text to binary converter · Number base converter