NUL

ASCII Character: Null character

ASCII Code 0 · Unicode U+0000 · Hex 0x00

null nul

About the Null character Character

ASCII code 0 (0x00) represents the Null character (NUL) control character. This is a non-printable character defined in the original ASCII standard (1963). It is a miscellaneous control character with special significance in text processing and data communication. Control characters occupy codes 0–31 and 127 in the ASCII table and were originally designed for controlling hardware devices, managing communication links, and formatting text output. While many control characters have become obsolete with modern computing, several like LF (Line Feed), CR (Carriage Return), TAB, and ESC remain essential in everyday programming and text processing.

Encoding Details

ASCII Code 0
Hexadecimal 0x00
Octal 000
Binary 00000000
Unicode U+0000
Unicode Name NULL
HTML Numeric �
HTML Entity
URL Escape %00
UTF-8 (Hex) 00
Quoted-Printable =00

Source Code Examples

JavaScript
// Using escape sequence
let char = '\0';
// Using String.fromCharCode
let char2 = String.fromCharCode(0);
Python
# Using escape sequence
char = '\0'
# Using chr()
char = chr(0)
HTML
<!-- Using HTML entity -->
&#0;
C#
// Using escape sequence
char c = '\0';
// Using cast
char c2 = (char)0;

Navigate

Copied!