2
DigitPrintableDec 50

ASCII 50 2

The printable character "2" at ASCII code 50.

All Representations

Decimal
50
Hexadecimal
0x32
Octal
0o062
Binary
00110010
HTML Entity
2

Character Details

Character2
Name2
Decimal50
Hexadecimal0x32
Octal0o062
Binary00110010
HTML Entity2
CategoryDigit
PrintableYes

About ASCII 50 (2)

Two is the base of the binary numeral system that underlies all digital computing. Every piece of data in a modern computer — text, images, audio, programs — is stored as sequences of binary digits (bits), making 2 the foundational number of computer science. Powers of two (2, 4, 8, 16, 32, 64, 128, 256, 1024) appear throughout computing in memory sizes, address spaces, color depths, and buffer allocations, and are instantly recognizable to experienced programmers.

The ten decimal digit characters (0–9) occupy consecutive ASCII codes 48 through 57, arranged sequentially by deliberate design. This placement enables the classic parsing technique of subtracting the character '0' (code 48) from any digit character to yield its integer value — a trick embedded in virtually every text processing system and parser written in the past six decades. Digit characters are fundamentally distinct from numeric values: the character '5' is stored as byte value 53, not the integer 5.

In the ASCII encoding table, Digit 2 is assigned code point 50 in decimal (0x32 hexadecimal, 062 octal, 00110010 binary). The 7-bit ASCII standard, first published in 1963 by the American Standards Association, defines exactly 128 characters that remain the foundation of text encoding systems worldwide. UTF-8, the dominant encoding on the modern web, is fully backward compatible with ASCII — every ASCII character is encoded as the identical single byte in UTF-8, guaranteeing that Digit 2 works reliably across all operating systems, programming languages, and internet protocols.

Related ASCII Characters

Nearby ASCII Codes

DecHexOctBinCharName
450x2D0o05500101101--
460x2E0o05600101110..
470x2F0o05700101111//
480x300o0600011000000
490x310o0610011000111
500x320o0620011001022
510x330o0630011001133
520x340o0640011010044
530x350o0650011010155
540x360o0660011011066
550x370o0670011011177

Explore the Full ASCII Table

Browse all 128 ASCII characters with codes, representations, and detailed references.