ASCII表(American Standard Code for Information Interchange)是一种字符编码标准,它使用数字和字符来表示文本。ASCII表包含128个字符,其中包括数字、字母、标点符号和特殊控制字符。它是计算机和电信领域中最常用的字符编码标准之一,可以被广泛应用于各种数据传输和文本处理任务中。
ASCII Table
ASCII, which stands for American Standard Code for Information Interchange, is a character encoding standard used in computers and communication equipment. It is a 7-bit character code where every single bit represents a unique character. The ASCII table contains 128 characters, including letters, numbers, punctuation marks, and control characters.
Here is the complete ASCII table:
Decimal | ASCII | Binary | Octal | Hex | Character |
---|---|---|---|---|---|
0 | NUL | 0000000 | 0 | 00 | Null |
1 | SOH | 0000001 | 1 | 01 | Start of Heading |
2 | STX | 0000010 | 2 | 02 | Start of Text |
3 | ETX | 0000011 | 3 | 03 | End of Text |
4 | EOT | 0000100 | 4 | 04 | End of Transmission |
5 | ENQ | 0000101 | 5 | 05 | Enquiry |
6 | ACK | 0000110 | 6 | 06 | Acknowledge |
7 | BEL | 0000111 | 7 | 07 | Bell |
8 | BS | 0001000 | 10 | 08 | Backspace |
9 | HT | 0001001 | 11 | 09 | Horizontal Tab |
10 | LF | 0001010 | 12 | 0A | Line Feed |
11 | VT | 0001011 | 13 | 0B | Vertical Tab |
12 | FF | 0001100 | 14 | 0C | Form Feed |
13 | CR | 0001101 | 15 | 0D | Carriage Return |
14 | SO | 0001110 | 16 | 0E | Shift Out |
15 | SI | 0001111 | 17 | 0F | Shift In |
16 | DLE | 0010000 | 20 | 10 | Data Link Escape |
17 | DC1 | 0010001 | 21 | 11 | Device Control 1 |
18 | DC2 | 0010010 | 22 | 12 | Device Control 2 |
19 | DC3 | 0010011 | 23 | 13 | Device Control 3 |
20 | DC4 | 0010100 | 24 | 14 | Device Control 4 |
21 | NAK | 0010101 | 25 | 15 | Negative Acknowledge |
22 | SYN | 0010110 | 26 | 16 | Synchronous Idle |
23 | ETB | 0010111 | 27 | 17 | End of Transmission Block |
24 | CAN | 0011000 | 30 | 18 | Cancel |
25 | EM | 0011001 | 31 | 19 | End of Medium |
26 | SUB | 0011010 | 32 | 1A | Substitute |
27 | ESC | 0011011 | 33 | 1B | Escape |
28 | FS | 0011100 | 34 | 1C | File Separator |
29 | GS | 0011101 | 35 | 1D | Group Separator |
30 | RS | 0011110 | 36 | 1E | Record Separator |
31 | US | 0011111 | 37 | 1F | Unit Separator |
32 | Space | 0100000 | 40 | 20 | Space |
33 | ! | 0100001 | 41 | 21 | Exclamation mark |
34 | “ | 0100010 | 42 | 22 | Quotation mark |
35 | # | 0100011 | 43 | 23 | Number sign |
36 | $ | 0100100 | 44 | 24 | Dollar sign |
37 | % | 0100101 | 45 | 25 | Percent sign |
38 | & | 0100110 | 46 | 26 | Ampersand |
39 | ‘ | 0100111 | 47 | 27 | Apostrophe |
40 | ( | 0101000 | 50 | 28 | Left parenthesis |
41 | ) | 0101001 | 51 | 29 | Right parenthesis |
42 | * | 0101010 | 52 | 2A | Asterisk |
43 | + | 0101011 | 53 | 2B | Plus sign |
44 | , | 0101100 | 54 | 2C | Comma |
45 | – | 0101101 | 55 | 2D | Hyphen |
46 | . | 0101110 | 56 | 2E | Period |
47 | / | 0101111 | 57 | 2F | Slash |
48 | 0 | 0110000 | 60 | 30 | Digit zero |
49 | 1 | 0110001 | 61 | 31 | Digit one |
50 | 2 | 0110010 | 62 | 32 | Digit two |
51 | 3 | 0110011 | 63 | 33 | Digit three |
52 | 4 | 0110100 | 64 | 34 | Digit four |
53 | 5 | 0110101 | 65 | 35 | Digit five |
54 | 6 | 0110110 | 66 | 36 | Digit six |
55 | 7 | 0110111 | 67 | 37 | Digit seven |
56 | 8 | 0111000 | 70 | 38 | Digit eight |
57 | 9 | 0111001 | 71 | 39 | Digit nine |
58 | : | 0111010 | 72 | 3A | Colon |
59 | ; | 0111011 | 73 | 3B | Semicolon |
60 | < | 0111100 | 74 | 3C | Less than |
61 | = | 0111101 | 75 | 3D | Equals |
62 | > | 0111110 | 76 | 3E | Greater than |
63 | ? | 0111111 | 77 | 3F | Question mark |
64 | @ | 1000000 | 100 | 40 | At sign |
65 | A | 1000001 | 101 | 41 | Uppercase A |
66 | B | 1000010 | 102 |