ASCII code 50: "2"

ASCII 50 is Digit 2. In hex it is 0x32 and in binary 00110010.

2Character
50Decimal
0x32Hex
062Octal
00110010Binary

All representations

FormatValue
NameDigit 2
Decimal50
Hexadecimal0x32
Octal062
Binary00110010
HTML numeric entity2 / 2
Unicode code pointU+0032
URL encoded%32
UTF-8 bytes32 (one byte, same as ASCII)

Notes

Nearby codes

DecHexCharName
48300Digit 0
49311Digit 1
51333Digit 3
52344Digit 4

Get this code in code

JavaScript  '2'.charCodeAt(0)   // 50
Python      ord('2')          # 50
C           (char)50