5

ASCII Code 53

Five

About This Character

ASCII code 53 (0x35) represents the Five character "5". The digit "5" has ASCII code 53. 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 53
Octal 065
Hexadecimal 0x35
Binary 00110101
HTML Code 5
HTML Entity
Unicode U+0035
Unicode Name DIGIT FIVE
URL Escape %35
Quoted-Printable 5
UTF-8 (Hex) 35
Category Printable — Digits

How to Type in Code

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

See Also

Copied!