DevKits

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

Decimal4
Hexadecimal0x04
Octal0004
Binary00000100
HTML numeric entity
URL encoding%04
UTF-8 bytes0x04

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

&#4;   <!-- numeric entity (no named entity for this character) -->

Nearby codes