5

ASCII Character: Five

ASCII Code 53 · Unicode U+0035 · Hex 0x35

five 5

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

Encoding Details

ASCII Code 53
Hexadecimal 0x35
Octal 065
Binary 00110101
Unicode U+0035
Unicode Name DIGIT FIVE
HTML Numeric 5
HTML Entity
URL Escape %35
UTF-8 (Hex) 35
Quoted-Printable 5

Source Code Examples

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

Navigate

Copied!