3

ASCII Code 51

Three

About This Character

ASCII code 51 (0x33) represents the Three character "3". The digit "3" has ASCII code 51. The digits 0–9 occupy consecutive ASCII codes 48–57, which makes numeric conversion straightforward: subtracting 48 (or 0x30) from any digit character’s ASCII code gives its numeric value. The printable ASCII characters (codes 32–126) include the space, digits, uppercase and lowercase Latin letters, and common punctuation symbols. These 95 characters form the foundation of text representation in virtually all computing systems and are universally supported across all character encodings, programming languages, and operating systems.

Character Encoding

Decimal 51
Octal 063
Hexadecimal 0x33
Binary 00110011
HTML Code 3
HTML Entity
Unicode U+0033
Unicode Name DIGIT THREE
URL Escape %33
Quoted-Printable 3
UTF-8 (Hex) 33
Category Printable — Digits

How to Type in Code

JavaScript
// Character literal
let char = '3';
// Using char code
let char2 = String.fromCharCode(51);
// Unicode escape
let char3 = '\x33';
Python
# Character literal
char = '3'
# Using chr()
char = chr(51)
# Using ord() to get code
code = ord('3')  # Returns 51
HTML
<!-- Direct character -->
3
<!-- HTML entity (numeric) -->
&#51;
<!-- Hex entity -->
&#x33;
C#
// Character literal
char c = '3';
// Using cast
char c2 = (char)51;
// To get code from char
int code = (int)'3';  // Returns 51

See Also

Copied!