Skip to content
ASCII World
CAN

Cancel

ControlASCII 24 | Hex 0x18 | U+0018
CAN (code 24) tells the receiver to discard the current transmission. Unlike ETX or ETB, which indicate normal completion, CAN signals that the preceding data is invalid and should be thrown away. In terminal emulators, Ctrl+X generates CAN. Some legacy protocols use it as a reset command to abort a transfer in progress. Modern protocols handle cancellation at the application layer rather than with inline control characters.

ASCII Code

Decimal
24
Hexadecimal
0x18
Octal
30
Binary
0001 1000

Unicode

Code Point
U+0018
Escape
\u0018
UTF-8 Hex
0xE2 0x90 0x98
UTF-8 Binary
111000101001000010011000
UTF-16
0x0018
UTF-32
0x00000018

HTML Entities

Numeric

Hex


How to Type

HTML Entity

Unicode InputU+0018

Source Code Representations

C / Java
"\u0018"
CSS
\0018
JavaScript
"\u0018"
Perl
\x{0018}
Python 2
u"\u0018"
Python 3
\u0018
Ruby
\u{0018}

Frequently Asked Questions

What is ASCII code 24?
ASCII code 24 represents the Cancel character. In hexadecimal it is 0x18, in binary 0001 1000, and in octal 30. This is a non-printable control character used for device signaling and data transmission control.
How do I type ASCII 24 on a keyboard?
Control characters are typically entered using Ctrl key combinations. For example, Ctrl+X produces ASCII 24 in most terminal emulators. You can also use the HTML entity  in web pages.