An ASCII table lists the 128 characters of the ASCII standard, numbered 0 to 127. Codes 0 to 31 and 127 are control characters, invisible commands such as line feed (10) and carriage return (13). Codes 32 to 126 are the 95 printable characters: the space at 32, the digits at 48 to 57, capital A to Z at 65 to 90 and small a to z at 97 to 122. In hex the set runs from 00 to 7F, so capital A is 41 and small a is 61. The tables further down give every code in decimal and hex, grouped so you can print just the part you need.
In short
- ASCII is a 7-bit code with 128 characters, numbered 0 to 127 in decimal and 00 to 7F in hex.
- Codes 0 to 31 and 127 are control characters, and codes 32 to 126 are the 95 printable characters, including the space.
- Capital A is 65 (hex 41) and small a is 97 (hex 61), and every small letter sits 32 places after its capital.
- Unicode numbers U+0000 to U+007F are the ASCII set, and UTF-8 stores each as the same single byte.
On this page 11 sections
What is ASCII#
ASCII is a code that gives each basic English letter, digit and punctuation mark a number, along with a few commands for machines. The standard defines 128 characters: commands for machines plus visible signs like letters, digits and symbols[1]. RFC 20, a network document that reprints the chart from the US standard USAS X3.4-1968, calls it the USA Standard Code for Information Interchange[2]. The same document says the name is pronounced "as-key"[2].
Think of it as a shared dictionary, much like a Morse code chart for letters and numbers. When you type a capital A, the computer stores the number 65, and any program that reads ASCII turns 65 back into A[2]. The IANA registry of character sets lists ASCII under the name US-ASCII, with aliases such as ANSI_X3.4-1968, ANSI_X3.4-1986 and ISO646-US[3]. The Ecma International edition of the standard, ECMA-6, carries the ISO/IEC number 646, the label of its international counterpart[1].
How to read ASCII codes in decimal, hex and binary#
ASCII is a 7-bit code. A bit is a single one or zero, like a switch that is either on or off. Each character is a pattern of seven bits, and when it sits in a byte, a group of eight bits, the extra top bit is always 0[2]. Seven bits give 2 to the power of 7 patterns, which is 128, the same number of characters the standard defines[1].
One code can be written three ways, the way a distance can be given in miles or in feet. Hexadecimal, or hex, counts in sixteens with the digits 0 to 9 and the letters A to F, so ASCII runs from 00 to 7F in hex[4].
The original chart is a grid of 8 columns and 16 rows. The top three bits give the column number and the bottom four bits give the row number[2]. RFC 20 uses the letter K as its example: column 4, row 11, bits 1001011[2]. In decimal that is 4 × 16 + 11 = 75. In hex the column becomes the first digit and the row the second, so K is 4B.
Capital A is 65 (hex 41) and small a is 97 (hex 61), and every small letter sits exactly 32 places after its capital[2][5]. The digits start at 48, so 0 is 48 (hex 30) and 9 is 57 (hex 39)[2][5].
ASCII table of printable characters (32 to 126)#
Codes 32 to 126 are the 95 printable characters: the space, punctuation, the digits and the English letters in both cases[2]. RFC 20 notes that the space at code 32 is normally non-printing[2], and Unicode remarks that it is sometimes considered a control code[5]. Each decimal and hex value below is worked out from the character's column and row in the RFC 20 chart, as shown for K above[2].
Space, punctuation and digits (32 to 63)
| Decimal | Hex | Character |
|---|---|---|
| 32 | 20 | (space) |
| 33 | 21 | ! |
| 34 | 22 | " |
| 35 | 23 | # |
| 36 | 24 | $ |
| 37 | 25 | % |
| 38 | 26 | & |
| 39 | 27 | ' |
| 40 | 28 | ( |
| 41 | 29 | ) |
| 42 | 2A | * |
| 43 | 2B | + |
| 44 | 2C | , |
| 45 | 2D | - |
| 46 | 2E | . |
| 47 | 2F | / |
| 48 | 30 | 0 |
| 49 | 31 | 1 |
| 50 | 32 | 2 |
| 51 | 33 | 3 |
| 52 | 34 | 4 |
| 53 | 35 | 5 |
| 54 | 36 | 6 |
| 55 | 37 | 7 |
| 56 | 38 | 8 |
| 57 | 39 | 9 |
| 58 | 3A | : |
| 59 | 3B | ; |
| 60 | 3C | < |
| 61 | 3D | = |
| 62 | 3E | > |
| 63 | 3F | ? |
Uppercase letters and symbols (64 to 95)
| Decimal | Hex | Character |
|---|---|---|
| 64 | 40 | @ |
| 65 | 41 | A |
| 66 | 42 | B |
| 67 | 43 | C |
| 68 | 44 | D |
| 69 | 45 | E |
| 70 | 46 | F |
| 71 | 47 | G |
| 72 | 48 | H |
| 73 | 49 | I |
| 74 | 4A | J |
| 75 | 4B | K |
| 76 | 4C | L |
| 77 | 4D | M |
| 78 | 4E | N |
| 79 | 4F | O |
| 80 | 50 | P |
| 81 | 51 | Q |
| 82 | 52 | R |
| 83 | 53 | S |
| 84 | 54 | T |
| 85 | 55 | U |
| 86 | 56 | V |
| 87 | 57 | W |
| 88 | 58 | X |
| 89 | 59 | Y |
| 90 | 5A | Z |
| 91 | 5B | [ |
| 92 | 5C | \ |
| 93 | 5D | ] |
| 94 | 5E | ^ |
| 95 | 5F | _ |
Lowercase letters and symbols (96 to 126)
| Decimal | Hex | Character |
|---|---|---|
| 96 | 60 | ` |
| 97 | 61 | a |
| 98 | 62 | b |
| 99 | 63 | c |
| 100 | 64 | d |
| 101 | 65 | e |
| 102 | 66 | f |
| 103 | 67 | g |
| 104 | 68 | h |
| 105 | 69 | i |
| 106 | 6A | j |
| 107 | 6B | k |
| 108 | 6C | l |
| 109 | 6D | m |
| 110 | 6E | n |
| 111 | 6F | o |
| 112 | 70 | p |
| 113 | 71 | q |
| 114 | 72 | r |
| 115 | 73 | s |
| 116 | 74 | t |
| 117 | 75 | u |
| 118 | 76 | v |
| 119 | 77 | w |
| 120 | 78 | x |
| 121 | 79 | y |
| 122 | 7A | z |
| 123 | 7B | { |
| 124 | 7C | | |
| 125 | 7D | } |
| 126 | 7E | ~ |
ASCII control characters (0 to 31 and 127)#
Microsoft describes codes 0 to 31 as control codes meant for steering devices like printers[6]. Code 12, for example, is form feed, which makes a printer jump to the start of a fresh page[6]. Code 127, DEL, is a special case: Unicode lists it as a control character[5], while a footnote in RFC 20 places DEL, strictly, outside the control group[2].
Unicode gives "tab" as another name for horizontal tab (9), and "new line" and "end of line" as other names for line feed (10)[5]. Carriage return (13) is the code RFC 20 names as the end-of-line character used at UCLA[2].
| Decimal | Hex | Abbreviation | Name |
|---|---|---|---|
| 0 | 00 | NUL | Null |
| 1 | 01 | SOH | Start of heading |
| 2 | 02 | STX | Start of text |
| 3 | 03 | ETX | End of text |
| 4 | 04 | EOT | End of transmission |
| 5 | 05 | ENQ | Enquiry |
| 6 | 06 | ACK | Acknowledge |
| 7 | 07 | BEL | Bell |
| 8 | 08 | BS | Backspace |
| 9 | 09 | HT | Horizontal tab |
| 10 | 0A | LF | Line feed |
| 11 | 0B | VT | Vertical tab |
| 12 | 0C | FF | Form feed |
| 13 | 0D | CR | Carriage return |
| 14 | 0E | SO | Shift out |
| 15 | 0F | SI | Shift in |
| 16 | 10 | DLE | Data link escape |
| 17 | 11 | DC1 | Device control 1 |
| 18 | 12 | DC2 | Device control 2 |
| 19 | 13 | DC3 | Device control 3 |
| 20 | 14 | DC4 | Device control 4 |
| 21 | 15 | NAK | Negative acknowledge |
| 22 | 16 | SYN | Synchronous idle |
| 23 | 17 | ETB | End of transmission block |
| 24 | 18 | CAN | Cancel |
| 25 | 19 | EM | End of medium |
| 26 | 1A | SUB | Substitute |
| 27 | 1B | ESC | Escape |
| 28 | 1C | FS | File separator |
| 29 | 1D | GS | Group separator |
| 30 | 1E | RS | Record separator |
| 31 | 1F | US | Unit separator |
| 127 | 7F | DEL | Delete |
ASCII chart printable: how to print these tables#
To keep a paper copy, you can print this page from your browser and keep only the sheets with the group of codes you need.
Extended ASCII and codes 128 to 255#
Some charts stretch to 256 codes, numbered 0 to 255, and call the upper part "extended ASCII". Even Microsoft's help page mentions a "256-characters Extended ACSII set"[6]. ASCII uses seven bits, and in an 8-bit byte the top bit is always 0[2], which caps the code at 127. In Unicode the range right after ASCII, 0080 to 00FF, is a separate block called C1 Controls and Latin-1 Supplement[5].
This is why the degree sign has no ASCII code. Microsoft's shortcut for it is Alt with 0176 on the numeric keypad[6], a value above 127. Our guide on how to type the degree symbol on Windows, Mac, iPhone and Android covers the other ways.
ASCII, Unicode and UTF-8#
Unicode is the much larger character list that also covers non-Latin scripts[6]. It starts with ASCII: its first block, C0 Controls and Basic Latin, runs from 0000 to 007F[5], the same 128 codes. Unicode calls the number of each character a code point and writes it as U+ followed by hex digits, so capital A is U+0041[5][4].
UTF-8 is one of several ways to store Unicode text as bytes[4]. It keeps every ASCII character as one byte with the same value: U+0000 to U+007F become bytes 00 to 7F, so plain ASCII text is also valid UTF-8[4]. Characters such as the em dash, U+2014[5], sit far outside that range and have no ASCII code at all. The guide to the em dash, en dash and hyphen explains how to type them.
Typing a character by its ASCII code on Windows#
On Windows you can type a character from its decimal code. Hold down Alt while you type the code[6]. The digits must come from the numeric keypad and not the number row, with Num Lock on if your keyboard needs it[6].
Microsoft's help page also describes a hex method: type the Unicode code, then press Alt and X[6]. Its own example is the dollar sign, typed as 0024 followed by Alt+X[6]. That 24 is the same hex value as the dollar sign in the first printable table.
Summary: which ASCII code to use#
Use the decimal column for Alt codes on Windows[6] and the hex column for Unicode codes, since U+0000 to U+007F are the ASCII characters[4]. Treat anything above 127 as a different character set, because ASCII stops at seven bits[2].
Frequently asked questions
What is the ASCII code for A?
Sources
Numbers in square brackets in the text point to these sources.
- 1 ECMA-6: 7-bit coded character setEcma International · accessed Nov 26, 2026ecma-international.org
- 2 RFC 20: ASCII format for Network InterchangeIETF / RFC Editor · published Oct 16, 1969 · accessed Nov 26, 2026rfc-editor.org
- 3 Character Sets registryIANA · accessed Nov 26, 2026iana.org
- 4 RFC 3629: UTF-8, a transformation format of ISO 10646IETF / RFC Editor · accessed Nov 26, 2026rfc-editor.org
- 5 Unicode Character Database: NamesList.txtUnicode Consortium · accessed Nov 26, 2026unicode.org
- 6 Insert ASCII or Unicode Latin-based symbols and charactersMicrosoft Support · accessed Nov 26, 2026support.microsoft.com