ASCII Table
ASCII is a 7-bit character code with 128 values, 0 to 127: 33 control codes and 95 printable characters. The table gives each code in decimal, hex, octal and binary. Bytes 128 to 255 are not ASCII; they belong to code pages such as Windows-1252.
ASCII table: codes 0 to 127 in decimal, hex, octal and binary
| Dec | Hex | Oct | Binary | Char | Name |
|---|---|---|---|---|---|
| 0 | 00 | 000 | 00000000 | NUL | NUL Null |
| 1 | 01 | 001 | 00000001 | SOH | SOH Start of heading |
| 2 | 02 | 002 | 00000010 | STX | STX Start of text |
| 3 | 03 | 003 | 00000011 | ETX | ETX End of text |
| 4 | 04 | 004 | 00000100 | EOT | EOT End of transmission |
| 5 | 05 | 005 | 00000101 | ENQ | ENQ Enquiry |
| 6 | 06 | 006 | 00000110 | ACK | ACK Acknowledge |
| 7 | 07 | 007 | 00000111 | BEL | BEL Bell |
| 8 | 08 | 010 | 00001000 | BS | BS Backspace |
| 9 | 09 | 011 | 00001001 | HT | HT Horizontal tab |
| 10 | 0A | 012 | 00001010 | LF | LF Line feed |
| 11 | 0B | 013 | 00001011 | VT | VT Vertical tab |
| 12 | 0C | 014 | 00001100 | FF | FF Form feed |
| 13 | 0D | 015 | 00001101 | CR | CR Carriage return |
| 14 | 0E | 016 | 00001110 | SO | SO Shift out |
| 15 | 0F | 017 | 00001111 | SI | SI Shift in |
| 16 | 10 | 020 | 00010000 | DLE | DLE Data link escape |
| 17 | 11 | 021 | 00010001 | DC1 | DC1 Device control 1 |
| 18 | 12 | 022 | 00010010 | DC2 | DC2 Device control 2 |
| 19 | 13 | 023 | 00010011 | DC3 | DC3 Device control 3 |
| 20 | 14 | 024 | 00010100 | DC4 | DC4 Device control 4 |
| 21 | 15 | 025 | 00010101 | NAK | NAK Negative acknowledge |
| 22 | 16 | 026 | 00010110 | SYN | SYN Synchronous idle |
| 23 | 17 | 027 | 00010111 | ETB | ETB End of transmission block |
| 24 | 18 | 030 | 00011000 | CAN | CAN Cancel |
| 25 | 19 | 031 | 00011001 | EM | EM End of medium |
| 26 | 1A | 032 | 00011010 | SUB | SUB Substitute |
| 27 | 1B | 033 | 00011011 | ESC | ESC Escape |
| 28 | 1C | 034 | 00011100 | FS | FS File separator |
| 29 | 1D | 035 | 00011101 | GS | GS Group separator |
| 30 | 1E | 036 | 00011110 | RS | RS Record separator |
| 31 | 1F | 037 | 00011111 | US | US Unit separator |
| 32 | 20 | 040 | 00100000 | ␠ | Space |
| 33 | 21 | 041 | 00100001 | ! | |
| 34 | 22 | 042 | 00100010 | " | |
| 35 | 23 | 043 | 00100011 | # | |
| 36 | 24 | 044 | 00100100 | $ | |
| 37 | 25 | 045 | 00100101 | % | |
| 38 | 26 | 046 | 00100110 | & | |
| 39 | 27 | 047 | 00100111 | ' | |
| 40 | 28 | 050 | 00101000 | ( | |
| 41 | 29 | 051 | 00101001 | ) | |
| 42 | 2A | 052 | 00101010 | * | |
| 43 | 2B | 053 | 00101011 | + | |
| 44 | 2C | 054 | 00101100 | , | |
| 45 | 2D | 055 | 00101101 | - | |
| 46 | 2E | 056 | 00101110 | . | |
| 47 | 2F | 057 | 00101111 | / | |
| 48 | 30 | 060 | 00110000 | 0 | |
| 49 | 31 | 061 | 00110001 | 1 | |
| 50 | 32 | 062 | 00110010 | 2 | |
| 51 | 33 | 063 | 00110011 | 3 | |
| 52 | 34 | 064 | 00110100 | 4 | |
| 53 | 35 | 065 | 00110101 | 5 | |
| 54 | 36 | 066 | 00110110 | 6 | |
| 55 | 37 | 067 | 00110111 | 7 | |
| 56 | 38 | 070 | 00111000 | 8 | |
| 57 | 39 | 071 | 00111001 | 9 | |
| 58 | 3A | 072 | 00111010 | : | |
| 59 | 3B | 073 | 00111011 | ; | |
| 60 | 3C | 074 | 00111100 | < | |
| 61 | 3D | 075 | 00111101 | = | |
| 62 | 3E | 076 | 00111110 | > | |
| 63 | 3F | 077 | 00111111 | ? | |
| 64 | 40 | 100 | 01000000 | @ | |
| 65 | 41 | 101 | 01000001 | A | |
| 66 | 42 | 102 | 01000010 | B | |
| 67 | 43 | 103 | 01000011 | C | |
| 68 | 44 | 104 | 01000100 | D | |
| 69 | 45 | 105 | 01000101 | E | |
| 70 | 46 | 106 | 01000110 | F | |
| 71 | 47 | 107 | 01000111 | G | |
| 72 | 48 | 110 | 01001000 | H | |
| 73 | 49 | 111 | 01001001 | I | |
| 74 | 4A | 112 | 01001010 | J | |
| 75 | 4B | 113 | 01001011 | K | |
| 76 | 4C | 114 | 01001100 | L | |
| 77 | 4D | 115 | 01001101 | M | |
| 78 | 4E | 116 | 01001110 | N | |
| 79 | 4F | 117 | 01001111 | O | |
| 80 | 50 | 120 | 01010000 | P | |
| 81 | 51 | 121 | 01010001 | Q | |
| 82 | 52 | 122 | 01010010 | R | |
| 83 | 53 | 123 | 01010011 | S | |
| 84 | 54 | 124 | 01010100 | T | |
| 85 | 55 | 125 | 01010101 | U | |
| 86 | 56 | 126 | 01010110 | V | |
| 87 | 57 | 127 | 01010111 | W | |
| 88 | 58 | 130 | 01011000 | X | |
| 89 | 59 | 131 | 01011001 | Y | |
| 90 | 5A | 132 | 01011010 | Z | |
| 91 | 5B | 133 | 01011011 | [ | |
| 92 | 5C | 134 | 01011100 | \ | |
| 93 | 5D | 135 | 01011101 | ] | |
| 94 | 5E | 136 | 01011110 | ^ | |
| 95 | 5F | 137 | 01011111 | _ | |
| 96 | 60 | 140 | 01100000 | ` | |
| 97 | 61 | 141 | 01100001 | a | |
| 98 | 62 | 142 | 01100010 | b | |
| 99 | 63 | 143 | 01100011 | c | |
| 100 | 64 | 144 | 01100100 | d | |
| 101 | 65 | 145 | 01100101 | e | |
| 102 | 66 | 146 | 01100110 | f | |
| 103 | 67 | 147 | 01100111 | g | |
| 104 | 68 | 150 | 01101000 | h | |
| 105 | 69 | 151 | 01101001 | i | |
| 106 | 6A | 152 | 01101010 | j | |
| 107 | 6B | 153 | 01101011 | k | |
| 108 | 6C | 154 | 01101100 | l | |
| 109 | 6D | 155 | 01101101 | m | |
| 110 | 6E | 156 | 01101110 | n | |
| 111 | 6F | 157 | 01101111 | o | |
| 112 | 70 | 160 | 01110000 | p | |
| 113 | 71 | 161 | 01110001 | q | |
| 114 | 72 | 162 | 01110010 | r | |
| 115 | 73 | 163 | 01110011 | s | |
| 116 | 74 | 164 | 01110100 | t | |
| 117 | 75 | 165 | 01110101 | u | |
| 118 | 76 | 166 | 01110110 | v | |
| 119 | 77 | 167 | 01110111 | w | |
| 120 | 78 | 170 | 01111000 | x | |
| 121 | 79 | 171 | 01111001 | y | |
| 122 | 7A | 172 | 01111010 | z | |
| 123 | 7B | 173 | 01111011 | { | |
| 124 | 7C | 174 | 01111100 | | | |
| 125 | 7D | 175 | 01111101 | } | |
| 126 | 7E | 176 | 01111110 | ~ | |
| 127 | 7F | 177 | 01111111 | DEL | DEL Delete |
Control characters, codes 0 to 31 and 127
The first 32 codes and the last one do not print anything. They were defined for teleprinters and punched tape, and they steer the machine at the other end: start a new line, ring a bell, mark the end of a message. Most are obsolete, but about a dozen still do real work in terminals, text files and network protocols. The table gives the standard abbreviation, the name, and what the code is used for now.
| Dec | Hex | Abbr. | Name | Use today |
|---|---|---|---|---|
| 0 | 00 | NUL | Null | String terminator in C; padding in binary data |
| 1 | 01 | SOH | Start of heading | Rare; framing in old serial protocols |
| 2 | 02 | STX | Start of text | Rare; framing in old serial protocols |
| 3 | 03 | ETX | End of text | Ctrl+C in terminals sends this byte (interrupt) |
| 4 | 04 | EOT | End of transmission | Ctrl+D in Unix terminals signals end of input |
| 5 | 05 | ENQ | Enquiry | Rare; handshake in old serial protocols |
| 6 | 06 | ACK | Acknowledge | Rare; positive reply in serial protocols |
| 7 | 07 | BEL | Bell | Makes the terminal beep |
| 8 | 08 | BS | Backspace | Moves the cursor back one position |
| 9 | 09 | HT | Horizontal tab | The Tab key; indents text |
| 10 | 0A | LF | Line feed | Newline on Unix, Linux and macOS |
| 11 | 0B | VT | Vertical tab | Rare; vertical spacing |
| 12 | 0C | FF | Form feed | Page break on printers |
| 13 | 0D | CR | Carriage return | Part of the Windows line ending CR LF |
| 14 | 0E | SO | Shift out | Rare; switches character set |
| 15 | 0F | SI | Shift in | Rare; switches character set back |
| 16 | 10 | DLE | Data link escape | Rare; escapes control codes in protocols |
| 17 | 11 | DC1 | Device control 1 | XON: resume transmission (Ctrl+Q) |
| 18 | 12 | DC2 | Device control 2 | Rare; device control |
| 19 | 13 | DC3 | Device control 3 | XOFF: pause transmission (Ctrl+S) |
| 20 | 14 | DC4 | Device control 4 | Rare; device control |
| 21 | 15 | NAK | Negative acknowledge | Rare; negative reply in serial protocols |
| 22 | 16 | SYN | Synchronous idle | Rare; sync in old serial protocols |
| 23 | 17 | ETB | End of transmission block | Rare; block framing |
| 24 | 18 | CAN | Cancel | Cancels the current line or message |
| 25 | 19 | EM | End of medium | Rare; end of tape or disk |
| 26 | 1A | SUB | Substitute | Marks a bad character; Ctrl+Z is end of file in DOS and Windows |
| 27 | 1B | ESC | Escape | Starts terminal escape sequences; the Esc key |
| 28 | 1C | FS | File separator | Separator in structured data streams |
| 29 | 1D | GS | Group separator | Separator in structured data streams |
| 30 | 1E | RS | Record separator | Separator in structured data streams (used by JSON Text Sequences) |
| 31 | 1F | US | Unit separator | Separator in structured data streams |
| 127 | 7F | DEL | Delete | Erases the character; was used to punch out paper tape |
Three of them decide how a text file ends its lines. Line feed (10, 0A) is the newline on Linux and macOS, carriage return (13, 0D) was the newline on classic Mac OS, and Windows uses both in a row, CR LF. A file with the wrong line ending shows as one long line or as a stray character at the end of every line, and that is the usual reason a script copied between systems fails. The tab (9, 09) and the NUL (0, 00) are the other two worth recognizing in a hex view: NUL ends a string in C, and a run of 00 bytes in a text file points to UTF-16 or to binary data.
On a keyboard, holding Ctrl and pressing a letter clears the top bits of the letter's code and sends the control code beneath it. Ctrl+C sends 03 (end of text), Ctrl+G sends 07 (the bell), Ctrl+I is the same as Tab (09), Ctrl+J is a line feed (0A), and Ctrl+[ is Escape (1B). That is why terminals show ^C and ^[ for those keys.
Printable characters, codes 32 to 126
The 95 printable codes start at the space (32, hex 20) and end at the tilde (126, hex 7E). They fall into four runs, and knowing where the runs begin lets you read most ASCII hex without a table: punctuation and symbols are scattered through 20 to 2F, 3A to 40, 5B to 60 and 7B to 7E; the digits sit at 30 to 39; capital letters at 41 to 5A; lower case at 61 to 7A.
The layout was chosen so that simple operations are bit operations. The digit characters carry their value in the low four bits, so "7" is 37 and subtracting 30 gives the number 7. Capital and lower case letters of the same letter are 32 apart, which is a single bit, the one worth 20 in hex.
The consequence is that a mask converts case: clearing bit 5 (AND with DF) makes a letter upper case, and setting it (OR with 20) makes it lower case. This only works for letters. Applied to a digit or to punctuation it changes the character, which is a common source of bugs in hand-written case conversion.
Extended ASCII: codes 128 to 255 are not ASCII
ASCII has 128 codes because it is a 7-bit code. A byte has eight bits, and the spare bit was used for parity on serial lines, or, once memory was cheaper, to add 128 more characters. Each vendor added different ones, so there is no such thing as one extended ASCII. The name covers many code pages, and a byte above 7F means different things depending on which one the sender used.
Two code pages matter on the web. ISO 8859-1, called Latin-1, maps byte 0 to FF onto the first 256 Unicode code points, so E9 is U+00E9, é. Windows-1252 is the Microsoft variation: identical to Latin-1 except in 80 to 9F, where Latin-1 has C1 control codes that almost nobody uses and Windows-1252 has useful printable characters, including the euro sign, curly quotation marks, the en and em dashes and the trademark sign. Five bytes (81, 8D, 8F, 90 and 9D) are not assigned in Windows-1252 at all. Browsers treat a page labelled ISO-8859-1 as Windows-1252, as the WHATWG Encoding Standard requires, so text that mixes the two usually displays as the Windows version.
| Hex | Windows-1252 | Unicode |
|---|---|---|
| 80 | € | U+20AC |
| 82 | ‚ | U+201A |
| 83 | ƒ | U+0192 |
| 84 | „ | U+201E |
| 85 | … | U+2026 |
| 86 | † | U+2020 |
| 87 | ‡ | U+2021 |
| 88 | ˆ | U+02C6 |
| 89 | ‰ | U+2030 |
| 8A | Š | U+0160 |
| 8B | ‹ | U+2039 |
| 8C | Œ | U+0152 |
| 8E | Ž | U+017D |
| 91 | ‘ | U+2018 |
| 92 | ’ | U+2019 |
| 93 | “ | U+201C |
| 94 | ” | U+201D |
| 95 | • | U+2022 |
| 96 | – | U+2013 |
| 97 | — | U+2014 |
| 98 | ˜ | U+02DC |
| 99 | ™ | U+2122 |
| 9A | š | U+0161 |
| 9B | › | U+203A |
| 9C | œ | U+0153 |
| 9E | ž | U+017E |
| 9F | Ÿ | U+0178 |
The full 128 to 255 range for both code pages follows. The hex decoder at the top of the main page uses the same tables, so a byte above 7F decoded as ASCII is reported as an error and not guessed at.
| Dec | Hex | Windows-1252 | ISO 8859-1 |
|---|---|---|---|
| 128 | 80 | € | control |
| 129 | 81 | undefined | control |
| 130 | 82 | ‚ | control |
| 131 | 83 | ƒ | control |
| 132 | 84 | „ | control |
| 133 | 85 | … | control |
| 134 | 86 | † | control |
| 135 | 87 | ‡ | control |
| 136 | 88 | ˆ | control |
| 137 | 89 | ‰ | control |
| 138 | 8A | Š | control |
| 139 | 8B | ‹ | control |
| 140 | 8C | Œ | control |
| 141 | 8D | undefined | control |
| 142 | 8E | Ž | control |
| 143 | 8F | undefined | control |
| 144 | 90 | undefined | control |
| 145 | 91 | ‘ | control |
| 146 | 92 | ’ | control |
| 147 | 93 | “ | control |
| 148 | 94 | ” | control |
| 149 | 95 | • | control |
| 150 | 96 | – | control |
| 151 | 97 | — | control |
| 152 | 98 | ˜ | control |
| 153 | 99 | ™ | control |
| 154 | 9A | š | control |
| 155 | 9B | › | control |
| 156 | 9C | œ | control |
| 157 | 9D | undefined | control |
| 158 | 9E | ž | control |
| 159 | 9F | Ÿ | control |
| 160 | A0 | ||
| 161 | A1 | ¡ | ¡ |
| 162 | A2 | ¢ | ¢ |
| 163 | A3 | £ | £ |
| 164 | A4 | ¤ | ¤ |
| 165 | A5 | ¥ | ¥ |
| 166 | A6 | ¦ | ¦ |
| 167 | A7 | § | § |
| 168 | A8 | ¨ | ¨ |
| 169 | A9 | © | © |
| 170 | AA | ª | ª |
| 171 | AB | « | « |
| 172 | AC | ¬ | ¬ |
| 173 | AD | | |
| 174 | AE | ® | ® |
| 175 | AF | ¯ | ¯ |
| 176 | B0 | ° | ° |
| 177 | B1 | ± | ± |
| 178 | B2 | ² | ² |
| 179 | B3 | ³ | ³ |
| 180 | B4 | ´ | ´ |
| 181 | B5 | µ | µ |
| 182 | B6 | ¶ | ¶ |
| 183 | B7 | · | · |
| 184 | B8 | ¸ | ¸ |
| 185 | B9 | ¹ | ¹ |
| 186 | BA | º | º |
| 187 | BB | » | » |
| 188 | BC | ¼ | ¼ |
| 189 | BD | ½ | ½ |
| 190 | BE | ¾ | ¾ |
| 191 | BF | ¿ | ¿ |
| 192 | C0 | À | À |
| 193 | C1 | Á | Á |
| 194 | C2 | Â | Â |
| 195 | C3 | Ã | Ã |
| 196 | C4 | Ä | Ä |
| 197 | C5 | Å | Å |
| 198 | C6 | Æ | Æ |
| 199 | C7 | Ç | Ç |
| 200 | C8 | È | È |
| 201 | C9 | É | É |
| 202 | CA | Ê | Ê |
| 203 | CB | Ë | Ë |
| 204 | CC | Ì | Ì |
| 205 | CD | Í | Í |
| 206 | CE | Î | Î |
| 207 | CF | Ï | Ï |
| 208 | D0 | Ð | Ð |
| 209 | D1 | Ñ | Ñ |
| 210 | D2 | Ò | Ò |
| 211 | D3 | Ó | Ó |
| 212 | D4 | Ô | Ô |
| 213 | D5 | Õ | Õ |
| 214 | D6 | Ö | Ö |
| 215 | D7 | × | × |
| 216 | D8 | Ø | Ø |
| 217 | D9 | Ù | Ù |
| 218 | DA | Ú | Ú |
| 219 | DB | Û | Û |
| 220 | DC | Ü | Ü |
| 221 | DD | Ý | Ý |
| 222 | DE | Þ | Þ |
| 223 | DF | ß | ß |
| 224 | E0 | à | à |
| 225 | E1 | á | á |
| 226 | E2 | â | â |
| 227 | E3 | ã | ã |
| 228 | E4 | ä | ä |
| 229 | E5 | å | å |
| 230 | E6 | æ | æ |
| 231 | E7 | ç | ç |
| 232 | E8 | è | è |
| 233 | E9 | é | é |
| 234 | EA | ê | ê |
| 235 | EB | ë | ë |
| 236 | EC | ì | ì |
| 237 | ED | í | í |
| 238 | EE | î | î |
| 239 | EF | ï | ï |
| 240 | F0 | ð | ð |
| 241 | F1 | ñ | ñ |
| 242 | F2 | ò | ò |
| 243 | F3 | ó | ó |
| 244 | F4 | ô | ô |
| 245 | F5 | õ | õ |
| 246 | F6 | ö | ö |
| 247 | F7 | ÷ | ÷ |
| 248 | F8 | ø | ø |
| 249 | F9 | ù | ù |
| 250 | FA | ú | ú |
| 251 | FB | û | û |
| 252 | FC | ü | ü |
| 253 | FD | ý | ý |
| 254 | FE | þ | þ |
| 255 | FF | ÿ | ÿ |
ASCII to hex: the hex value of each character
To write text as hex, look up the code of each character and write it in base 16. For Hi! the codes are 72, 105 and 33 in decimal, which are 48, 69 and 21 in hex, so the string is 48 69 21. Each character is one byte because all three are below 128. The same string in UTF-8 gives the same bytes, since UTF-8 was designed to agree with ASCII.
Characters beyond ASCII are where this stops being a table lookup, because their bytes depend on the encoding. To convert longer text, use the ASCII to hex converter; to go the other way, paste hex into the hex to ASCII decoder.
What is ASCII?
ASCII, the American Standard Code for Information Interchange, assigns a number from 0 to 127 to each of 128 characters, so that machines from different makers could exchange text. It was first published in 1963 as ASA X3.4-1963 and was revised several times; the 1967 revision added lower case letters, and the version still cited is ANSI X3.4-1986. The code grew out of telegraph and teleprinter practice, which is where the control characters come from.
Seven bits was a deliberate economy. Each transmitted character cost line time, and the eighth bit in an 8-bit byte could carry a parity check. Network documents adopted the code early; RFC 20, from 1969, describes it for use between networked computers and is still a readable summary of the table. Nearly every text protocol since, from SMTP to HTTP headers, defines its syntax in terms of ASCII.
ASCII compared with Unicode and UTF-8
Unicode is a catalogue of more than 150,000 characters, each with a code point. Its first 128 code points are ASCII, in the same order, so U+0041 is the capital A and U+000A is the line feed. A character set is not a file format, so Unicode also needs an encoding that turns code points into bytes. UTF-8, the encoding used by almost all web pages, writes the code points below 128 as single bytes with the ASCII values and uses two to four bytes for the rest.
This is the reason a plain ASCII file opens correctly as UTF-8 and why programs that only expect ASCII mostly survive UTF-8 input. It does not work in the other direction: a UTF-8 file with accented letters or emoji is not ASCII, and an ASCII-only tool will show those bytes as garbage or reject them. UTF-16 and UTF-32 do not share this property; in them the letter A is 41 00 or 00 41 and 00 00 00 41, never a bare 41.
ASCII codes in HTML, CSS and source code
An ASCII code can be written into HTML, CSS, URLs and most programming languages with an escape that contains its number. The notation differs by language but the number is the same. HTML takes decimal or hex numeric references, CSS takes a hex escape of up to six digits (and a space after a short escape ends it), C, Python and JavaScript string literals take \x followed by two hex digits, and URLs take a percent sign and two hex digits.
| Char | Dec | Hex | HTML decimal | HTML hex | C, Python, JS | CSS | URL |
|---|---|---|---|---|---|---|---|
| A | 65 | 41 | A | A | \x41 | \41 | %41 |
| a | 97 | 61 | a | a | \x61 | \61 | %61 |
| 0 | 48 | 30 | 0 | 0 | \x30 | \30 | %30 |
| space | 32 | 20 |   |   | \x20 | \20 | %20 |
| ! | 33 | 21 | ! | ! | \x21 | \21 | %21 |
| " | 34 | 22 | " | " | \x22 | \22 | %22 |
| & | 38 | 26 | & | & | \x26 | \26 | %26 |
| < | 60 | 3C | < | < | \x3C | \3c | %3C |
| ~ | 126 | 7E | ~ | ~ | \x7E | \7e | %7E |
In URLs the characters that must be escaped are the ones that carry meaning in the syntax or are not allowed at all, such as the space (%20), the quotation mark (%22) and the angle brackets. RFC 3986 lists them. In HTML text the characters that need a reference are <, > and &, plus the quotation mark inside attribute values.
Typing ASCII characters with Alt codes on Windows
On Windows, holding Alt and typing a number on the numeric keypad enters the character with that code. Alt+65 types A. The leading zero matters above 127: without it Windows uses the old IBM code page 437, so Alt+233 types Θ on a US system, while Alt+0233 uses Windows-1252 and types é. Laptops without a numeric keypad need the Fn layer or an on-screen keypad. On macOS the Option key combinations and the Character Viewer do the same job without codes.
Questions about the ASCII table
How many characters are in the ASCII table?
128: codes 0 to 127. Of these, 33 are control codes (0 to 31 and 127) and 95 are printable, counting the space. The printable set is 52 letters, 10 digits, 32 punctuation and symbol characters, and the space.
What is the ASCII code for A, a and 0?
Capital A is 65 (hex 41), lower case a is 97 (hex 61), and the digit character 0 is 48 (hex 30). The digit 0 and the NUL control code, which is code 0, are different characters.
Why do uppercase and lowercase letters differ by 32?
The letters are laid out so that case is one bit. Capital letters start at 65 (binary 0100 0001) and lower case at 97 (0110 0001); the only difference is the bit worth 32. Flipping that bit changes the case, which is how early software could compare letters without regard to case with a single mask.
Is the ASCII table the same as extended ASCII?
No. ASCII ends at 127. Extended ASCII is a loose name for several different 8-bit code pages that agree with ASCII for 0 to 127 and disagree above it, such as ISO 8859-1, Windows-1252 and IBM code page 437. A byte like E9 is é in the first two and Θ in the last.
What does the DEL character do?
DEL is code 127, all seven bits set. On paper tape, punching every hole in a position erased whatever was punched there, so DEL meant "ignore this". Today many Unix terminals send it when you press Backspace, and most other software treats it as a character to be dropped.
