Skip to content
ASCII World
EOT

End of Transmission

ControlASCII 4 | Hex 0x04 | U+0004
EOT (code 4) signals the end of a complete transmission session. In Unix terminals, Ctrl+D generates EOT, which the shell interprets as end-of-input (EOF) on stdin. Teletype operators sent EOT to indicate they had finished transmitting and were releasing the line. The Kermit file transfer protocol uses EOT to signal that all files have been sent. In modern usage, the distinction between EOT (session end) and ETX (message end) has collapsed because most systems no longer multiplex messages over shared lines.

ASCII Code

Decimal
4
Hexadecimal
0x04
Octal
4
Binary
0000 0100

Unicode

Code Point
U+0004
Escape
\u0004
UTF-8 Hex
0xE2 0x90 0x84
UTF-8 Binary
111000101001000010000100
UTF-16
0x0004
UTF-32
0x00000004

HTML Entities

Numeric

Hex


How to Type

HTML Entity

Unicode InputU+0004

Source Code Representations

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

Frequently Asked Questions

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