x
Lowercase x
PrintableASCII 120 | Hex 0x78 | U+0078
Lowercase x sits at ASCII 120. Hex values are prefixed with 0x in C, JavaScript, Python, and most programming languages, making x inseparable from hexadecimal notation in code. In algebra, x is the conventional variable for unknowns, a tradition dating to Descartes' 1637 La Geometrie. In regular expressions, the x flag enables verbose mode with comments and whitespace in some engines. The multiplication sign (x) in casual text is distinct from the Unicode multiplication operator (U+00D7).
ASCII Code
Decimal
120
Hexadecimal
0x78
Octal
170
Binary
0111 1000
URL Escape
%78
Unicode
Code Point
U+0078
Escape
\u0078
UTF-8 Hex
0x78
UTF-8 Binary
01111000
UTF-16
0x0078
UTF-32
0x00000078
HTML Entities
Numeric
x
Hex
x
How to Type
Windows Alt CodeAlt + 120
HTML Entity
x
Unicode InputU+0078
Source Code Representations
C / Java
"\u0078"CSS
\0078JavaScript
"\u0078"Perl
\x{0078}Python 2
u"\u0078"Python 3
\u0078Ruby
\u{0078}Frequently Asked Questions
What is ASCII code 120?
ASCII code 120 represents the Lowercase x character. In hexadecimal it is 0x78, in binary 0111 1000, and in octal 170. It is a printable character that appears as "x" in text.
How do I type ASCII 120 on a keyboard?
On Windows, hold Alt and type 120 on the numeric keypad. On Mac, you can use the Character Viewer (Edit > Emoji & Symbols). In HTML, use the entity x or x.