0
Zero
PrintableASCII 48 | Hex 0x30 | U+0030
Arabic numeral zero occupies ASCII 48, the start of the contiguous digit block (48-57). In C and its descendants, a leading zero marks an octal literal (0777 is decimal 511), which catches programmers off guard when they zero-pad numbers for alignment. The digit zero and uppercase letter O (ASCII 79) are visually ambiguous in many fonts, which is why monospace programming fonts like JetBrains Mono and Fira Code give zero a dotted or slashed center. Null (ASCII 0) and the digit zero (ASCII 48) are entirely different characters despite the name overlap.
ASCII Code
Decimal
48
Hexadecimal
0x30
Octal
60
Binary
0011 0000
URL Escape
%30
Unicode
Code Point
U+0030
Escape
\u0030
UTF-8 Hex
0x30
UTF-8 Binary
00110000
UTF-16
0x0030
UTF-32
0x00000030
HTML Entities
Numeric
0
Hex
0
How to Type
Windows Alt CodeAlt + 48
HTML Entity
0
Unicode InputU+0030
Source Code Representations
C / Java
"\u0030"CSS
\0030JavaScript
"\u0030"Perl
\x{0030}Python 2
u"\u0030"Python 3
\u0030Ruby
\u{0030}Frequently Asked Questions
What is ASCII code 48?
ASCII code 48 represents the Zero character. In hexadecimal it is 0x30, in binary 0011 0000, and in octal 60. It is a printable character that appears as "0" in text.
How do I type ASCII 48 on a keyboard?
On Windows, hold Alt and type 48 on the numeric keypad. On Mac, you can use the Character Viewer (Edit > Emoji & Symbols). In HTML, use the entity 0 or 0.