ASCII Code 56 · Unicode U+0038 · Hex 0x38
ASCII code 56 (0x38) represents the Eight character "8". The digit "8" has ASCII code 56. 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.
| ASCII Code | 56 |
| Hexadecimal | 0x38 |
| Octal | 070 |
| Binary | 00111000 |
| Unicode | U+0038 |
| Unicode Name | DIGIT EIGHT |
| HTML Numeric | 8 |
| HTML Entity | — |
| URL Escape | %38 |
| UTF-8 (Hex) | 38 |
| Quoted-Printable | 8 |
// Character literal
let char = '8';
// Using char code
let char2 = String.fromCharCode(56);
// Unicode escape
let char3 = '\x38'; # Character literal
char = '8'
# Using chr()
char = chr(56)
# Using ord() to get code
code = ord('8') # Returns 56 <!-- Direct character -->
8
<!-- HTML entity (numeric) -->
8
<!-- Hex entity -->
8 // Character literal
char c = '8';
// Using cast
char c2 = (char)56;
// To get code from char
int code = (int)'8'; // Returns 56