ASCII Table
Local only — nothing is uploaded unless you save or share it.
The full ASCII table, with the control codes explained rather than left blank.
- Type a character, a number, or a name like “escape” into the search box.
- Read the row: decimal, hex, octal, binary and the HTML entity if it has one.
- Clear the box to browse the whole table, or turn on Latin-1 for 128 to 255.
| Char | Dec | Hex | Oct | Binary | Name | HTML |
|---|
Save this tool
Keep ASCII Table handy
Use your browser's Share menu, then “Add to Home Screen”.
About this tool
The complete ASCII table — all 128 codes in decimal, hex, octal and binary — plus a search box that takes whatever form you already have. Paste a character, a number, 0x1D, U+0041, an HTML entity or a name like “line feed”, and it finds the row. The control characters are the reason most people come here, and they are the part other tables leave blank. Nobody looks up the ASCII code for the letter A. They look because a file has a stray 0x0D in it, or a protocol document mentions ETX, or something is breaking on a character that does not print. So every code from 0 to 31 is named and described here, with a note on what it was for and where it still turns up — why Ctrl+S can freeze a terminal, why Windows line endings leave ^M in a file, why a null byte in a text file usually means something wrote binary by mistake. Codes 128 to 255 are shown separately and labelled Latin-1, because that is a choice rather than a fact. ASCII is seven bits and genuinely stops at 127. What sits above depends entirely on the encoding: 0xE9 is é in Latin-1, something else in a neighbouring code page, and half of a two-byte sequence in UTF-8. Tables that present that range as plain “extended ASCII” are where a good many mojibake bugs begin. It all runs in your browser, so it works offline once the page has loaded.
Frequently asked questions
What is the ASCII code for A?
65 in decimal, 0x41 in hex, 101 in octal, 01000001 in binary. Lower-case a is 97 — exactly 32 more, which is one bit, and that is not a coincidence: setting or clearing bit 5 switches case, which is how case conversion was done before anybody needed to think about other alphabets.
What are the control characters for?
They were commands to a teleprinter rather than marks on a page, and about eight of them are still load-bearing. LF and CR end lines, HT is the tab key, ESC begins every terminal escape sequence, BEL still makes terminals beep, and DC3 — Ctrl+S — still pauses output, which is why a terminal sometimes appears to freeze for no reason. The rest are mostly historical, and this table says which are which.
Why is DEL at 127 rather than next to backspace?
Because on punched tape, 127 is all seven holes. Any other character could be turned into it by punching out the remaining holes, which made it the one code that could reliably overwrite a mistake. There was no way to un-punch a hole, so “delete” had to be the pattern with every bit set.
Is there such a thing as extended ASCII?
Not really, and the phrase causes more trouble than it saves. ASCII is a seven-bit standard that ends at 127. Codes 128 to 255 depend entirely on which encoding is in use — 0xE9 is é in Latin-1, a different character in some code pages, and not a whole character at all in UTF-8. This table shows that range as Latin-1 and labels it, rather than implying there is one answer.
What is the difference between CR and LF?
On a teleprinter they were two separate motions: CR returned the print head to the left margin, LF rolled the paper up one line. Unix and macOS ended up using LF alone for a newline, Windows kept both as CR LF, and old Macs used CR alone. That disagreement is why a file moved between systems can show every line running together, or gain a ^M at the end of each one.
Can I search by the character itself?
Yes — paste it in and you get its row. The box also takes a decimal number, 0x hex, \x hex, a U+ code point, 0b binary, 0o octal, an HTML entity like &, an abbreviation like LF, or a name like “carriage return”. It works out which you meant from what you typed, so there is no mode to set.
Help improve this tool
Found a bug, want a change, or need a tool we don't have?
You have an unsent draft.
Thanks — that's with us. You'll find the reply in your inbox.Go to my messages