ASCII 4
End of Transmission (EOT)
Control character
Sent by Ctrl+D at the start of a line to signal EOF on Unix.
All encodings at a glance
| Decimal | 4 |
| Hexadecimal | 0x04 |
| Octal | 0004 |
| Binary | 00000100 |
| HTML numeric entity |  |
| URL encoding | %04 |
| UTF-8 bytes | 0x04 |
Code snippets
JavaScript
String.fromCharCode(4); // "EOT"
4.toString(16); // "04"Python
chr(4) # control char EOT
ord(chr(4)) # 4
hex(4) # '0x04'HTML
 <!-- numeric entity (no named entity for this character) -->