ASCII Code 120 · Unicode U+0078 · Hex 0x78
ASCII code 120 (0x78) represents the Lowercase x character "x". The lowercase letter "x" has ASCII code 120. Lowercase letters a–z span codes 97–122. Subtracting 32 from a lowercase letter’s ASCII code gives the corresponding uppercase letter (e.g., 'a' at 97 - 32 = 'A' at 65). 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 | 120 |
| Hexadecimal | 0x78 |
| Octal | 170 |
| Binary | 01111000 |
| Unicode | U+0078 |
| Unicode Name | LATIN SMALL LETTER X |
| HTML Numeric | x |
| HTML Entity | — |
| URL Escape | %78 |
| UTF-8 (Hex) | 78 |
| Quoted-Printable | x |
// Character literal
let char = 'x';
// Using char code
let char2 = String.fromCharCode(120);
// Unicode escape
let char3 = '\x78'; # Character literal
char = 'x'
# Using chr()
char = chr(120)
# Using ord() to get code
code = ord('x') # Returns 120 <!-- Direct character -->
x
<!-- HTML entity (numeric) -->
x
<!-- Hex entity -->
x // Character literal
char c = 'x';
// Using cast
char c2 = (char)120;
// To get code from char
int code = (int)'x'; // Returns 120