3

ASCII Character: Three

ASCII Code 51 · Unicode U+0033 · Hex 0x33

three 3

About the Three 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.

Encoding Details

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

Source Code Examples

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

Navigate

Copied!