ASCII Table

Every ASCII code from 0 to 127 in four bases. Search for a character, a number such as 65, or a name such as "tab" or "escape".

How it works

ASCII is the 1960s table that gave each English letter, digit and punctuation mark a number from 0 to 127. Those 128 codes fit in 7 bits, and they are still the first 128 characters of Unicode and of UTF-8, so the letter A is 65 everywhere.

Codes 0 to 31 and 127 are control characters. They were commands for teleprinters, such as "move to a new line" or "ring the bell", so they have names instead of shapes. A few still matter every day: tab (9), line feed (10) and carriage return (13).

Each card shows the code in decimal, hex, octal and binary, all computed from the number rather than typed in. Copy copies the character itself, or the decimal code for a control character, which cannot be pasted usefully.

How to use it

  1. 1 Type a character, a code such as 65 or 0x41, or a name such as "line feed".
  2. 2 Find the card and read the code in the base you need.
  3. 3 Press Copy to copy the character.
  4. 4 Clear the box to see the whole table: control characters first, then the printable ones.

Good to know

  • A capital letter and its small letter are exactly 32 apart: A is 65 and a is 97. In binary that is a single bit, 0x20.
  • The digit characters start at 48, so the character "7" is code 55. Subtract 48 to get the digit's value.
  • Windows ends a line with CR LF (13 10); Linux and macOS use LF (10) alone.
  • Anything above 127, such as é or €, is not ASCII. In UTF-8 it takes two or more bytes.

Browser support

  • Chrome 94 and later
  • Firefox 93 and later
  • Safari 16.4 and later
  • Edge 94 and later

These are the oldest versions with everything the tool uses. They are worked out from the tool itself, so they change when it does.

Version numbers checked on 2026-09-04.

Spelling "Hi!" in ASCII, in four bases

The quickest way to understand the table is to encode a short word by hand. Take "Hi!". The capital letters start at 65 for A, so H, the eighth letter, is 65 plus 7, which is 72. The small letters start at 97 for a, so i, the ninth letter, is 97 plus 8, which is 105. The exclamation mark sits among the punctuation at 33. "Hi!" is therefore the three numbers 72, 105 and 33.

Now the other bases. In hex, 72 is 4 sixteens and 8 left over, so 0x48. 105 is 6 sixteens and 9, so 0x69. 33 is 2 sixteens and 1, so 0x21. That gives the hex bytes 48 69 21, which is exactly what a hex viewer shows for a file containing "Hi!". In binary, 72 is 64 plus 8, written 01001000. 105 is 64 plus 32 plus 8 plus 1, written 01101001. 33 is 32 plus 1, written 00100001. In octal, 72 is 1 sixty-four and 8, so 110; 105 is 1 sixty-four, 5 eights and 1, so 151; and 33 is 4 eights and 1, so 041. Type each number into the search box above to check every one.

Look at H and i in binary and you can see a design choice. The capital letters all start with 010 and the small letters with 011. The only difference between a capital and its small letter is the bit worth 32, which is why A is 65 (01000001) and a is 97 (01100001). Old programs changed case by flipping that one bit. The digits were laid out with the same care: "0" is 48, which is 0x30, so the low four bits of each digit character are the digit itself.

The control characters are history you still trip over. Code 13, carriage return, moved a teleprinter's head back to the start of the line, and code 10, line feed, moved the paper up one line. A printer needed both, so Windows still ends lines with the pair 13 10, while Unix chose 10 alone. That single difference is why a file from one system can look like one long line, or show stray ^M marks, on the other. Code 27, escape, still starts the codes that colour text in a terminal.

The table has clear limits. ASCII covers English and nothing else: no accented letters, no currency signs except the dollar, no other scripts. Codes 128 to 255 are not ASCII at all, whatever a page titled "extended ASCII" says, and their meaning depends on which old code page a file used. For anything beyond these 128 characters you need Unicode, and to see the UTF-8 bytes of any text, the Text to Hex tool on this site will show them.

Frequently asked questions

What is the difference between ASCII and Unicode?

ASCII has 128 characters, enough for English. Unicode has over 150,000, covering every script and emoji. Unicode kept ASCII as its first 128 code points, so any ASCII text is also valid Unicode, and valid UTF-8, byte for byte.

Is there such a thing as extended ASCII?

Not one single thing. Codes 128 to 255 were filled differently by different systems, such as Windows-1252 and ISO 8859-1. That is why old files show odd characters like é when read as UTF-8. True ASCII stops at 127.

What do \n and \r mean?

\n is line feed, code 10, and \r is carriage return, code 13. They are the escapes most programming languages use for those control characters. The table shows the escape on each card that has one.

Why is DEL 127 and not next to the other control characters?

On paper tape, 127 is all seven holes punched. Punching every hole over a wrong character erased it, so "delete" had to be the code with every bit set.

Related tools

Your files are processed on your device and are not uploaded. You can verify this in your browser’s developer tools under the Network tab.