Searchable ASCII table: all 128 codes with decimal, hex, octal, binary, HTML entity and name, plus extended 128–255 (Windows-1252 / ISO-8859-1) and a text converter.
Runs on your device
Loading the tool…
How to use it
Type in the search box to filter the table: a character (A), a decimal code (65), a hex code (0x41), a binary value (1000001), a mnemonic (ESC) or part of a name (“separator”).
Click any cell to copy exactly that value – the character, its decimal, hex, octal or binary code, the HTML entity or the name.
Switch the extended set between Windows-1252 and ISO-8859-1 to see what bytes 128–255 mean in each code page; the ASCII half never changes.
Use the converter under the table to turn text into codes in any base, or paste codes (space-, comma- or line-separated) to read them back as text.
“Print table” prints the current rows only – filter first to print a subset.
Example
The word Hi! is 72 105 33 in decimal, 48 69 21 in hex and 01001000 01101001 00100001 in binary. H is 72 because capital letters start at 65 (A) and H is the eighth letter: 65 + 7 = 72. The lower-case i is 105 = 73 (I) + 32. A Windows text file ends each line with CR LF (13 10, hex 0D 0A); Unix and macOS use LF alone.
Delete – historically all seven holes punched on paper tape
The columns of the table are plain base conversions of the same number: hex is base 16 (two digits for a byte), octal is base 8 (three digits) and binary is base 2 (eight bits, the top bit is 0 for every ASCII character). The numeric HTML entity is &# followed by the decimal code and a semicolon; &#x takes the hex code.
The 8-bit range is shown for two code pages. Windows-1252 (the default in Western Windows) assigns 27 typographic characters to 128–159 – the euro sign at 128, curly quotes at 145–148, the en and em dash at 150–151, the trademark sign at 153 – and leaves bytes 129, 141, 143, 144 and 157 unassigned. ISO-8859-1 (Latin-1) reserves 128–159 for the C1 control codes defined in ISO/IEC 6429. Both code pages agree from 160 (no-break space) to 255 (ÿ), and those 96 characters have the same code points in Unicode. For the Windows-1252 characters at 128–159 the table shows the entity of the Unicode character (€ is €, not €), which is the form that is valid in HTML.
The text converter works on Unicode code points, so it also encodes characters outside ASCII (é → 233, € → 8364) and decodes any code point up to 0x10FFFF; surrogate values 0xD800–0xDFFF are rejected.
Most of the 33 control codes come from teleprinters and paper tape, but a few are everywhere: LF (10) ends lines on Unix, macOS and the web, CR LF (13 10) ends lines on Windows, HT (9) is the Tab key, ESC (27) starts terminal colour and cursor sequences, BEL (7) still rings the terminal bell, NUL (0) terminates strings in C, and DC1/DC3 (17/19) are the XON/XOFF flow-control characters – pressing Ctrl+S in a terminal sends DC3 and freezes the output until Ctrl+Q sends DC1.
Questions
What is the ASCII code for A, a and 0?
A is 65 (hex 41), a is 97 (hex 61) and the digit 0 is 48 (hex 30). Each later letter or digit adds one: B = 66, b = 98, 1 = 49.
Is ASCII the same as UTF-8?
UTF-8 is a superset: every ASCII character is one identical byte in UTF-8, so pure-ASCII text is valid UTF-8. Characters above 127 take two to four bytes in UTF-8, whereas Windows-1252 or ISO-8859-1 store them as a single byte with a code-page-specific meaning.
Why does the table show two different sets for 128–255?
The ASCII standard stops at 127. Bytes 128–255 were assigned differently by each vendor; Windows-1252 and ISO-8859-1 are the two Western sets you are most likely to meet, and they disagree exactly in the range 128–159.
How do I type an ASCII character by its code?
On Windows hold Alt and type the decimal code on the numeric keypad (Alt+65 gives A; codes above 127 use the current code page, Alt+0128 gives € in Windows-1252). In HTML write A or A; in most programming languages use \x41 or \u0041.
The tools work without any of this. If you agree, we load anonymous usage statistics (Google Analytics) and ads (Google AdSense). Nothing is loaded until you choose, and you can change your mind any time under “Privacy settings” in the footer. Privacy policy
Find a character
256 of 256 codes shown. Click any cell to copy it.
Range
Extended set (128–255)
Codes 0–127 are the ASCII standard and identical everywhere. Codes 128–255 depend on the code page: Windows-1252 puts € “ ” – — and other typographic characters at 128–159. Both share the Latin-1 letters at 160–255.
Dec
Hex
Oct
Binary
Char
HTML
Name
Description
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
Text → codes
Direction
Number base
Every character becomes one code; characters outside ASCII give values above 127.
Type text to see its decimal codes, or paste codes to read them back as text. Nothing leaves your browser.