ASCII code for end of transmission
4
End of Transmission — a control character, not printable
| Decimal | 4 |
| Hexadecimal | 0x04 |
| Octal | 0004 |
| Binary | 00000100 |
| HTML entity |  |
What it is
Ended a transmission entirely. On a Unix terminal this is what Ctrl+D sends, which is why Ctrl+D at an empty prompt closes the shell: it signals end-of-file on the input.
The full entry
ASCII 4 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 end of transmission?
The ASCII code for end of transmission is 4 in decimal, 0x04 in hexadecimal and 0004 in octal.
What is end of transmission in binary?
00000100 — eight bits, though ASCII only defines seven, so the top bit is always zero.
Is end of transmission a printable character?
No. End of Transmission 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 enquiry — 5
- ASCII code for acknowledge — 6
- ASCII code for bell — 7
- ASCII code for backspace — 8
- ASCII code for tab — 9
- ASCII code for newline — 10
- ASCII code for vertical tab — 11
- ASCII code for form feed — 12
- ASCII code for carriage return — 13
- ASCII code for shift out — 14
- ASCII code for shift in — 15
- ASCII code for data link escape — 16
Every character by name · The ASCII table · Text to binary converter