7

ASCII Code 55

Seven

About This Character

ASCII code 55 (0x37) represents the Seven character "7". The digit "7" has ASCII code 55. 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 55
Octal 067
Hexadecimal 0x37
Binary 00110111
HTML Code 7
HTML Entity
Unicode U+0037
Unicode Name DIGIT SEVEN
URL Escape %37
Quoted-Printable 7
UTF-8 (Hex) 37
Category Printable — Digits

How to Type in Code

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

See Also

Copied!