How to read the ASCII table
Each row gives one code in four number systems. Decimal is what Alt codes and most programming tutorials use. Hexadecimal is how codes appear in URLs (%20 is a space), in escape sequences such as \x41 and in hex editors; two hex digits cover one byte. Octal survives in Unix tools and old C code, and binary shows the seven bits ASCII was designed around.
The first 32 codes and code 127 are control characters. They were commands for teleprinters and terminals rather than symbols to print: 7 rang the bell, 8 moved back one position, 10 fed the paper one line and 13 returned the carriage to the left edge. A few are still in daily use. Windows ends lines with CR LF (13 10), Linux and macOS with LF alone, 9 is the tab and 27 starts the escape sequences that color text in a terminal. The small grey line under each control gives its caret notation (^J, the way terminals show it), its escape in C, JavaScript or Python (\n) and the symbol Alt plus that number types on Windows.
The order of the printable characters is not random. Digits start at 48, so subtracting 48 from a digit's code gives its value. Capitals start at 65 and small letters at 97: the two differ by exactly 32, a single bit, which is why converting case in ASCII is one operation. Sorting text by code puts every capital before every small letter, which explains why "Zebra" can come before "apple" in a plain sort.
Extended ASCII and Alt codes on Windows
ASCII stops at 127. The second table covers 128 to 255 in the two 8-bit sets that Windows still uses when you type Alt codes:
- Alt + 128 to 255 (no leading zero) types the character from the old DOS code page: 437, the original IBM PC set, on US Windows, with accented letters, the box-drawing lines ║ ╔ ╗ ═, shading blocks ░ ▒ ▓ and a few Greek and math signs. UK and Western European Windows use code page 850 instead, which swaps some of the lines and Greek letters for more accented capitals such as Á and Ê, so the same code can give a different character there.
- Alt + 0128 to 0255 (leading zero) types the character from Windows-1252: the euro sign €, curly quotes, dashes and the full set of Western European letters. From 160 to 255 these are also the Unicode characters with the same number, so the HTML column works in any page.
A character that is in neither table, such as ★ or ≠, has no Alt code in most programs. In Word you can type its Unicode number followed by Alt + X, and the site's special characters keyboard lets you click and copy it.
Converting text to ASCII codes
Type or paste text in the left box and its codes appear on the right, separated by spaces, in the format you pick. It also works the other way: paste a list of codes, for example 72 101 108 108 111, and you get the text back ("Hello"). Hex codes can be written as 41, 0x41, \x41 or A, and binary codes with or without 0b. Characters outside ASCII are given by their Unicode code point, so é shows as 233. The text stays in your browser.