Using the table
Search for a character, a code or a name. Type a letter such as A to find its codes, a number such as 65 or 0x41 to find its character, or a word such as tab or bell to find control characters. Untick Show control characters to see only printable ones.
Below the table, type any text to see the codes for each character. Characters outside ASCII, such as é or emoji, are shown as their UTF-8 bytes in square brackets.
About ASCII
ASCII, the American Standard Code for Information Interchange, was first published in 1963. It gives a number from 0 to 127 to each English letter, digit, punctuation mark and a set of control codes, so that different computers and teleprinters could exchange text.
Codes 0 to 31 and 127 are control characters, originally used to control printers and terminals: 10 is a line feed, 13 a carriage return, 9 a tab and 7 rings a bell. Code 32 is the space. Digits run from 48 to 57, capital letters from 65 to 90 and small letters from 97 to 122.
A neat pattern: a small letter is its capital plus 32, which in binary means just one bit changes. Modern text uses Unicode and UTF-8, but the first 128 codes are exactly the same as ASCII.
Questions and answers
What is the ASCII code for A?
Capital A is 65 (hex 41), and small a is 97 (hex 61).
What is the ASCII code for a space?
32, or 20 in hexadecimal.
What is extended ASCII?
Codes 128 to 255 were used by various older systems for accented letters and symbols, but they differ between systems. Modern text uses UTF-8 instead.
What are control characters?
Codes 0 to 31 and 127, which control devices rather than print anything, such as line feed, tab and backspace.