ASCII is an acronym for American Standard Code for Information Interchange, is a character encoding standard for electronic communication. ASCII codes represent text in computers, telecommunications equipment, and other devices. Although ASCII has been extended and superseded by Unicode, ASCII codes are still pervasive in computing, particularly when working in the terminal.
The following table summarizes the ASCII codes expressed in several convenient bases, and additionally provides the "carat escaped" value as is often seen in neovim.
Dec | Hex | Oct | Bin | Char | Name | Carat |
---|---|---|---|---|---|---|
0 | 0x0 | 0o0 | 0b0 | NUL | Null | ^@ |
1 | 0x1 | 0o1 | 0b1 | SOH | Start of Heading | ^A |
2 | 0x2 | 0o2 | 0b10 | STX | Start of Text | ^B |
3 | 0x3 | 0o3 | 0b11 | ETX | End of Text | ^C |
4 | 0x4 | 0o4 | 0b100 | EOT | End of Transmission | ^D |
5 | 0x5 | 0o5 | 0b101 | ENQ | Enquiry | ^E |
6 | 0x6 | 0o6 | 0b110 | ACK | Acknowledge | ^F |
7 | 0x7 | 0o7 | 0b111 | BEL | Bell | ^G |
8 | 0x8 | 0o10 | 0b1000 | BS | Backspace | ^H |
9 | 0x9 | 0o11 | 0b1001 | HT | Horizontal Tab | ^I |
10 | 0xa | 0o12 | 0b1010 | LF | Line Feed (Newline) | ^J |
11 | 0xb | 0o13 | 0b1011 | VT | Vertical Tab | ^K |
12 | 0xc | 0o14 | 0b1100 | FF | Page Break (Form feed) | ^L |
13 | 0xd | 0o15 | 0b1101 | CR | Carriage Return | ^M |
14 | 0xe | 0o16 | 0b1110 | SO | Shift Out | ^N |
15 | 0xf | 0o17 | 0b1111 | SI | Shift In | ^O |
16 | 0x10 | 0o20 | 0b10000 | DLE | Data Link Escape | ^P |
17 | 0x11 | 0o21 | 0b10001 | DC1 | Device Control 1 | ^Q |
18 | 0x12 | 0o22 | 0b10010 | DC2 | Device Control 2 | ^R |
19 | 0x13 | 0o23 | 0b10011 | DC3 | Device Control 3 | ^S |
20 | 0x14 | 0o24 | 0b10100 | DC4 | Device Control 4 | ^T |
21 | 0x15 | 0o25 | 0b10101 | NAK | Negative Acknowledge | ^U |
22 | 0x16 | 0o26 | 0b10110 | SYN | Synchronoud Idle | ^V |
23 | 0x17 | 0o27 | 0b10111 | ETB | End of Transmission Block | ^W |
24 | 0x18 | 0o30 | 0b11000 | CAN | Cancel | ^X |
25 | 0x19 | 0o31 | 0b11001 | EM | End of Medium | ^Y |
26 | 0x1a | 0o32 | 0b11010 | SUB | Substitute | ^Z |
27 | 0x1b | 0o33 | 0b11011 | ESC | Escape | ^[ |
28 | 0x1c | 0o34 | 0b11100 | FS | File Separator | ^\ |
29 | 0x1d | 0o35 | 0b11101 | GS | Group Separator | ^] |
30 | 0x1e | 0o36 | 0b11110 | RS | Record Separator | ^^ |
31 | 0x1f | 0o37 | 0b11111 | US | Unit Separator | ^_ |
32 | 0x20 | 0o40 | 0b100000 | |||
33 | 0x21 | 0o41 | 0b100001 | ! | ||
34 | 0x22 | 0o42 | 0b100010 | " | ||
35 | 0x23 | 0o43 | 0b100011 | # | ||
36 | 0x24 | 0o44 | 0b100100 | $ | ||
37 | 0x25 | 0o45 | 0b100101 | % | ||
38 | 0x26 | 0o46 | 0b100110 | & | ||
39 | 0x27 | 0o47 | 0b100111 | ' | ||
40 | 0x28 | 0o50 | 0b101000 | ( | ||
41 | 0x29 | 0o51 | 0b101001 | ) | ||
42 | 0x2a | 0o52 | 0b101010 | * | ||
43 | 0x2b | 0o53 | 0b101011 | + | ||
44 | 0x2c | 0o54 | 0b101100 | , | ||
45 | 0x2d | 0o55 | 0b101101 | - | ||
46 | 0x2e | 0o56 | 0b101110 | . | ||
47 | 0x2f | 0o57 | 0b101111 | / | ||
48 | 0x30 | 0o60 | 0b110000 | 0 | ||
49 | 0x31 | 0o61 | 0b110001 | 1 | ||
50 | 0x32 | 0o62 | 0b110010 | 2 | ||
51 | 0x33 | 0o63 | 0b110011 | 3 | ||
52 | 0x34 | 0o64 | 0b110100 | 4 | ||
53 | 0x35 | 0o65 | 0b110101 | 5 | ||
54 | 0x36 | 0o66 | 0b110110 | 6 | ||
55 | 0x37 | 0o67 | 0b110111 | 7 | ||
56 | 0x38 | 0o70 | 0b111000 | 8 | ||
57 | 0x39 | 0o71 | 0b111001 | 9 | ||
58 | 0x3a | 0o72 | 0b111010 | : | ||
59 | 0x3b | 0o73 | 0b111011 | ; | ||
60 | 0x3c | 0o74 | 0b111100 | < | ||
61 | 0x3d | 0o75 | 0b111101 | = | ||
62 | 0x3e | 0o76 | 0b111110 | > | ||
63 | 0x3f | 0o77 | 0b111111 | ? | ||
64 | 0x40 | 0o100 | 0b1000000 | @ | ||
65 | 0x41 | 0o101 | 0b1000001 | A | ||
66 | 0x42 | 0o102 | 0b1000010 | B | ||
67 | 0x43 | 0o103 | 0b1000011 | C | ||
68 | 0x44 | 0o104 | 0b1000100 | D | ||
69 | 0x45 | 0o105 | 0b1000101 | E | ||
70 | 0x46 | 0o106 | 0b1000110 | F | ||
71 | 0x47 | 0o107 | 0b1000111 | G | ||
72 | 0x48 | 0o110 | 0b1001000 | H | ||
73 | 0x49 | 0o111 | 0b1001001 | I | ||
74 | 0x4a | 0o112 | 0b1001010 | J | ||
75 | 0x4b | 0o113 | 0b1001011 | K | ||
76 | 0x4c | 0o114 | 0b1001100 | L | ||
77 | 0x4d | 0o115 | 0b1001101 | M | ||
78 | 0x4e | 0o116 | 0b1001110 | N | ||
79 | 0x4f | 0o117 | 0b1001111 | O | ||
80 | 0x50 | 0o120 | 0b1010000 | P | ||
81 | 0x51 | 0o121 | 0b1010001 | Q | ||
82 | 0x52 | 0o122 | 0b1010010 | R | ||
83 | 0x53 | 0o123 | 0b1010011 | S | ||
84 | 0x54 | 0o124 | 0b1010100 | T | ||
85 | 0x55 | 0o125 | 0b1010101 | U | ||
86 | 0x56 | 0o126 | 0b1010110 | V | ||
87 | 0x57 | 0o127 | 0b1010111 | W | ||
88 | 0x58 | 0o130 | 0b1011000 | X | ||
89 | 0x59 | 0o131 | 0b1011001 | Y | ||
90 | 0x5a | 0o132 | 0b1011010 | Z | ||
91 | 0x5b | 0o133 | 0b1011011 | [ | ||
92 | 0x5c | 0o134 | 0b1011100 | \ | ||
93 | 0x5d | 0o135 | 0b1011101 | ] | ||
94 | 0x5e | 0o136 | 0b1011110 | ^ | ||
95 | 0x5f | 0o137 | 0b1011111 | _ | ||
96 | 0x60 | 0o140 | 0b1100000 | ` | ||
97 | 0x61 | 0o141 | 0b1100001 | a | ||
98 | 0x62 | 0o142 | 0b1100010 | b | ||
99 | 0x63 | 0o143 | 0b1100011 | c | ||
100 | 0x64 | 0o144 | 0b1100100 | d | ||
101 | 0x65 | 0o145 | 0b1100101 | e | ||
102 | 0x66 | 0o146 | 0b1100110 | f | ||
103 | 0x67 | 0o147 | 0b1100111 | g | ||
104 | 0x68 | 0o150 | 0b1101000 | h | ||
105 | 0x69 | 0o151 | 0b1101001 | i | ||
106 | 0x6a | 0o152 | 0b1101010 | j | ||
107 | 0x6b | 0o153 | 0b1101011 | k | ||
108 | 0x6c | 0o154 | 0b1101100 | l | ||
109 | 0x6d | 0o155 | 0b1101101 | m | ||
110 | 0x6e | 0o156 | 0b1101110 | n | ||
111 | 0x6f | 0o157 | 0b1101111 | o | ||
112 | 0x70 | 0o160 | 0b1110000 | p | ||
113 | 0x71 | 0o161 | 0b1110001 | q | ||
114 | 0x72 | 0o162 | 0b1110010 | r | ||
115 | 0x73 | 0o163 | 0b1110011 | s | ||
116 | 0x74 | 0o164 | 0b1110100 | t | ||
117 | 0x75 | 0o165 | 0b1110101 | u | ||
118 | 0x76 | 0o166 | 0b1110110 | v | ||
119 | 0x77 | 0o167 | 0b1110111 | w | ||
120 | 0x78 | 0o170 | 0b1111000 | x | ||
121 | 0x79 | 0o171 | 0b1111001 | y | ||
122 | 0x7a | 0o172 | 0b1111010 | z | ||
123 | 0x7b | 0o173 | 0b1111011 | { | ||
124 | 0x7c | 0o174 | 0b1111100 | | | ||
125 | 0x7d | 0o175 | 0b1111101 | } | ||
126 | 0x7e | 0o176 | 0b1111110 | ~ | ||
127 | 0x7f | 0o177 | 0b1111111 | DEL | Delete | ^? |