Toolman

ASCII 24

ASCII 24 is Cancel — the control character CAN.

Every representation

CharacterCAN (not printable)
NameCancel
Decimal24
Hexadecimal0x18
Octal0030
Binary00011000
HTML entity
Escape sequence\x18
UnicodeU+0018
KeyboardCtrl+X
GroupControl 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

Full ASCII table · Text to binary converter · Number base converter