Skip to content
ASCII World
9

Nine

PrintableASCII 57 | Hex 0x39 | U+0039
Digit nine at ASCII 57 completes the contiguous digit block. Subtracting ASCII 48 ('0') from any digit character yields its integer value, a conversion trick that works because the digits occupy consecutive positions 48-57. In ISO 8859 encodings, the superscript digits (like ¹ at 185 and ² at 178) are not adjacent to the regular digits, breaking the contiguous-block assumption. The digit 9 is the highest single-digit number in decimal and hexadecimal alike.

ASCII Code

Decimal
57
Hexadecimal
0x39
Octal
71
Binary
0011 1001
URL Escape
%39

Unicode

Code Point
U+0039
Escape
\u0039
UTF-8 Hex
0x39
UTF-8 Binary
00111001
UTF-16
0x0039
UTF-32
0x00000039

HTML Entities

Numeric
9
Hex
9

How to Type

Windows Alt CodeAlt + 57
HTML Entity
9
Unicode InputU+0039

Source Code Representations

C / Java
"\u0039"
CSS
\0039
JavaScript
"\u0039"
Perl
\x{0039}
Python 2
u"\u0039"
Python 3
\u0039
Ruby
\u{0039}

Frequently Asked Questions

What is ASCII code 57?
ASCII code 57 represents the Nine character. In hexadecimal it is 0x39, in binary 0011 1001, and in octal 71. It is a printable character that appears as "9" in text.
How do I type ASCII 57 on a keyboard?
On Windows, hold Alt and type 57 on the numeric keypad. On Mac, you can use the Character Viewer (Edit > Emoji & Symbols). In HTML, use the entity 9 or 9.