DevKits

ASCII 48

Digit 0 (0)

Printable ASCII

The digit zero. In most languages, 0 is falsy. In C-family strings, '\0' terminates a string.

All encodings at a glance

Decimal48
Hexadecimal0x30
Octal0060
Binary00110000
HTML numeric entity0
URL encoding%30
UTF-8 bytes0x30

Code snippets

JavaScript

String.fromCharCode(48); // "0"
48.toString(16); // "30"

Python

chr(48)           # '0'
ord(chr(48))      # 48
hex(48)           # '0x30'

HTML

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

Nearby codes