8
Eight
PrintableASCII 56 | Hex 0x38 | U+0038
ASCII 56 holds the digit eight. An 8-bit byte (octet) became the standard storage unit for characters, which is why extended ASCII encodings map 256 characters (2 to the 8th power). Octal notation uses digits 0-7 only, so the digit 8 never appears in octal numbers, a common source of confusion for programmers encountering octal for the first time. UTF-8 gets its name from using 8-bit code units, distinguishing it from UTF-16 (16-bit) and UTF-32 (32-bit).
ASCII Code
Decimal
56
Hexadecimal
0x38
Octal
70
Binary
0011 1000
URL Escape
%38
Unicode
Code Point
U+0038
Escape
\u0038
UTF-8 Hex
0x38
UTF-8 Binary
00111000
UTF-16
0x0038
UTF-32
0x00000038
HTML Entities
Numeric
8
Hex
8
How to Type
Windows Alt CodeAlt + 56
HTML Entity
8
Unicode InputU+0038
Source Code Representations
C / Java
"\u0038"CSS
\0038JavaScript
"\u0038"Perl
\x{0038}Python 2
u"\u0038"Python 3
\u0038Ruby
\u{0038}Frequently Asked Questions
What is ASCII code 56?
ASCII code 56 represents the Eight character. In hexadecimal it is 0x38, in binary 0011 1000, and in octal 70. It is a printable character that appears as "8" in text.
How do I type ASCII 56 on a keyboard?
On Windows, hold Alt and type 56 on the numeric keypad. On Mac, you can use the Character Viewer (Edit > Emoji & Symbols). In HTML, use the entity 8 or 8.