DevKits

ASCII 0

Null (NUL)

Control character

String terminator in C. Rarely appears in text; frequently in binary files.

All encodings at a glance

Decimal0
Hexadecimal0x00
Octal0000
Binary00000000
HTML numeric entity�
URL encoding%00
UTF-8 bytes0x00

Code snippets

JavaScript

String.fromCharCode(0); // "NUL"
0.toString(16); // "00"

Python

chr(0)           # control char NUL
ord(chr(0))      # 0
hex(0)           # '0x00'

HTML

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

Nearby codes