ASCII Table - ASCII Encoding
The ASCII table query tool helps you quickly look up standard ASCII encoding. It supports mutual conversion between decimal, hexadecimal, octal, and binary, with built-in filtering for control characters and printable characters. It also provides one-click copy functionality, making it easy to call up values during programming and serial port debugging, serving as a practical reference manual for developers and computer science learners.
Zero dependencies · Works offlineSearch & Filter
| Decimal | Hexadecimal | Octal | Binary | Character | HTML Entity | Description |
|---|---|---|---|---|---|---|
| 0 | 0x0 | 00 | 00000000 | Null character | ||
| 1 | 0x1 | 01 | 00000001 | Start of heading | ||
| 2 | 0x2 | 02 | 00000010 | Start of text | ||
| 3 | 0x3 | 03 | 00000011 | End of text | ||
| 4 | 0x4 | 04 | 00000100 | End of transmission | ||
| 5 | 0x5 | 05 | 00000101 | Enquiry | ||
| 6 | 0x6 | 06 | 00000110 | Acknowledge | ||
| 7 | 0x7 | 07 | 00000111 | Bell | ||
| 8 | 0x8 | 010 | 00001000 | Backspace | ||
| 9 | 0x9 | 011 | 00001001 | Horizontal tab | ||
| 10 | 0xA | 012 | 00001010 | Line feed | ||
| 11 | 0xB | 013 | 00001011 | Vertical tab | ||
| 12 | 0xC | 014 | 00001100 | Form feed | ||
| 13 | 0xD | 015 | 00001101 | Carriage return | ||
| 14 | 0xE | 016 | 00001110 | Shift out | ||
| 15 | 0xF | 017 | 00001111 | Shift in | ||
| 16 | 0x10 | 020 | 00010000 | Data link escape | ||
| 17 | 0x11 | 021 | 00010001 | Device control 1 | ||
| 18 | 0x12 | 022 | 00010010 | Device control 2 | ||
| 19 | 0x13 | 023 | 00010011 | Device control 3 | ||
| 20 | 0x14 | 024 | 00010100 | Device control 4 | ||
| 21 | 0x15 | 025 | 00010101 | Negative acknowledge | ||
| 22 | 0x16 | 026 | 00010110 | Synchronous idle | ||
| 23 | 0x17 | 027 | 00010111 | End of transmission block | ||
| 24 | 0x18 | 030 | 00011000 | Cancel | ||
| 25 | 0x19 | 031 | 00011001 | End of medium | ||
| 26 | 0x1A | 032 | 00011010 | Substitute | ||
| 27 | 0x1B | 033 | 00011011 | Escape | ||
| 28 | 0x1C | 034 | 00011100 | File separator | ||
| 29 | 0x1D | 035 | 00011101 | Group separator | ||
| 30 | 0x1E | 036 | 00011110 | Record separator | ||
| 31 | 0x1F | 037 | 00011111 | Unit separator | ||
| 32 | 0x20 | 040 | 00100000 | Space | ||
| 33 | 0x21 | 041 | 00100001 | ! | ! | Exclamation mark |
| 34 | 0x22 | 042 | 00100010 | " | " | Double quote |
| 35 | 0x23 | 043 | 00100011 | # | # | Number sign |
| 36 | 0x24 | 044 | 00100100 | $ | $ | Dollar sign |
| 37 | 0x25 | 045 | 00100101 | % | % | Percent sign |
| 38 | 0x26 | 046 | 00100110 | & | & | Ampersand |
| 39 | 0x27 | 047 | 00100111 | ' | ' | Single quote |
| 40 | 0x28 | 050 | 00101000 | ( | ( | Left parenthesis |
| 41 | 0x29 | 051 | 00101001 | ) | ) | Right parenthesis |
| 42 | 0x2A | 052 | 00101010 | * | * | Asterisk |
| 43 | 0x2B | 053 | 00101011 | + | + | Plus sign |
| 44 | 0x2C | 054 | 00101100 | , | , | Comma |
| 45 | 0x2D | 055 | 00101101 | - | - | Hyphen |
| 46 | 0x2E | 056 | 00101110 | . | . | Period |
| 47 | 0x2F | 057 | 00101111 | / | / | Slash |
| 48 | 0x30 | 060 | 00110000 | 0 | 0 | 0 |
| 49 | 0x31 | 061 | 00110001 | 1 | 1 | 1 |
| 50 | 0x32 | 062 | 00110010 | 2 | 2 | 2 |
| 51 | 0x33 | 063 | 00110011 | 3 | 3 | 3 |
| 52 | 0x34 | 064 | 00110100 | 4 | 4 | 4 |
| 53 | 0x35 | 065 | 00110101 | 5 | 5 | 5 |
| 54 | 0x36 | 066 | 00110110 | 6 | 6 | 6 |
| 55 | 0x37 | 067 | 00110111 | 7 | 7 | 7 |
| 56 | 0x38 | 070 | 00111000 | 8 | 8 | 8 |
| 57 | 0x39 | 071 | 00111001 | 9 | 9 | 9 |
| 58 | 0x3A | 072 | 00111010 | : | : | Colon |
| 59 | 0x3B | 073 | 00111011 | ; | ; | Semicolon |
| 60 | 0x3C | 074 | 00111100 | < | < | Less-than sign |
| 61 | 0x3D | 075 | 00111101 | = | = | Equals sign |
| 62 | 0x3E | 076 | 00111110 | > | > | Greater-than sign |
| 63 | 0x3F | 077 | 00111111 | ? | ? | Question mark |
| 64 | 0x40 | 0100 | 01000000 | @ | @ | At sign |
| 65 | 0x41 | 0101 | 01000001 | A | A | A |
| 66 | 0x42 | 0102 | 01000010 | B | B | B |
| 67 | 0x43 | 0103 | 01000011 | C | C | C |
| 68 | 0x44 | 0104 | 01000100 | D | D | D |
| 69 | 0x45 | 0105 | 01000101 | E | E | E |
| 70 | 0x46 | 0106 | 01000110 | F | F | F |
| 71 | 0x47 | 0107 | 01000111 | G | G | G |
| 72 | 0x48 | 0110 | 01001000 | H | H | H |
| 73 | 0x49 | 0111 | 01001001 | I | I | I |
| 74 | 0x4A | 0112 | 01001010 | J | J | J |
| 75 | 0x4B | 0113 | 01001011 | K | K | K |
| 76 | 0x4C | 0114 | 01001100 | L | L | L |
| 77 | 0x4D | 0115 | 01001101 | M | M | M |
| 78 | 0x4E | 0116 | 01001110 | N | N | N |
| 79 | 0x4F | 0117 | 01001111 | O | O | O |
| 80 | 0x50 | 0120 | 01010000 | P | P | P |
| 81 | 0x51 | 0121 | 01010001 | Q | Q | Q |
| 82 | 0x52 | 0122 | 01010010 | R | R | R |
| 83 | 0x53 | 0123 | 01010011 | S | S | S |
| 84 | 0x54 | 0124 | 01010100 | T | T | T |
| 85 | 0x55 | 0125 | 01010101 | U | U | U |
| 86 | 0x56 | 0126 | 01010110 | V | V | V |
| 87 | 0x57 | 0127 | 01010111 | W | W | W |
| 88 | 0x58 | 0130 | 01011000 | X | X | X |
| 89 | 0x59 | 0131 | 01011001 | Y | Y | Y |
| 90 | 0x5A | 0132 | 01011010 | Z | Z | Z |
| 91 | 0x5B | 0133 | 01011011 | [ | [ | Left square bracket |
| 92 | 0x5C | 0134 | 01011100 | \ | \ | Backslash |
| 93 | 0x5D | 0135 | 01011101 | ] | ] | Right square bracket |
| 94 | 0x5E | 0136 | 01011110 | ^ | ^ | Caret |
| 95 | 0x5F | 0137 | 01011111 | _ | _ | Underscore |
| 96 | 0x60 | 0140 | 01100000 | ` | ` | Grave accent |
| 97 | 0x61 | 0141 | 01100001 | a | a | a |
| 98 | 0x62 | 0142 | 01100010 | b | b | b |
| 99 | 0x63 | 0143 | 01100011 | c | c | c |
| 100 | 0x64 | 0144 | 01100100 | d | d | d |
| 101 | 0x65 | 0145 | 01100101 | e | e | e |
| 102 | 0x66 | 0146 | 01100110 | f | f | f |
| 103 | 0x67 | 0147 | 01100111 | g | g | g |
| 104 | 0x68 | 0150 | 01101000 | h | h | h |
| 105 | 0x69 | 0151 | 01101001 | i | i | i |
| 106 | 0x6A | 0152 | 01101010 | j | j | j |
| 107 | 0x6B | 0153 | 01101011 | k | k | k |
| 108 | 0x6C | 0154 | 01101100 | l | l | l |
| 109 | 0x6D | 0155 | 01101101 | m | m | m |
| 110 | 0x6E | 0156 | 01101110 | n | n | n |
| 111 | 0x6F | 0157 | 01101111 | o | o | o |
| 112 | 0x70 | 0160 | 01110000 | p | p | p |
| 113 | 0x71 | 0161 | 01110001 | q | q | q |
| 114 | 0x72 | 0162 | 01110010 | r | r | r |
| 115 | 0x73 | 0163 | 01110011 | s | s | s |
| 116 | 0x74 | 0164 | 01110100 | t | t | t |
| 117 | 0x75 | 0165 | 01110101 | u | u | u |
| 118 | 0x76 | 0166 | 01110110 | v | v | v |
| 119 | 0x77 | 0167 | 01110111 | w | w | w |
| 120 | 0x78 | 0170 | 01111000 | x | x | x |
| 121 | 0x79 | 0171 | 01111001 | y | y | y |
| 122 | 0x7A | 0172 | 01111010 | z | z | z |
| 123 | 0x7B | 0173 | 01111011 | { | { | Left curly brace |
| 124 | 0x7C | 0174 | 01111100 | | | | | Vertical bar |
| 125 | 0x7D | 0175 | 01111101 | } | } | Right curly brace |
| 126 | 0x7E | 0176 | 01111110 | ~ | ~ | Tilde |
| 127 | 0x7F | 0177 | 01111111 | Delete character |
How to Use
This ASCII table query tool is a practical reference for developers and learners. Below is a detailed usage guide:
Basic Lookup: When the page opens, it displays a complete table of all 128 standard ASCII characters by default. The table shows, from left to right, the decimal value, hexadecimal value, octal value, binary value, character display, HTML entity encoding, and character description. You can browse directly to find the character information you need.
Category Filtering: Click the filter tags above the table (All, Control Characters, Printable Characters, Digits, Uppercase Letters, Lowercase Letters, Punctuation) to quickly filter specific categories of characters. For example, selecting the "Digits" tag will show only the complete information for characters 0-9 (ASCII values 48-57).
Search Function: Enter keywords in the search box to search by decimal value (e.g. "65"), hexadecimal value (e.g. "41"), the character itself (e.g. "A"), or description text (e.g. "newline", "LF"). Search results update in real time, making it easy to quickly locate the target character.
One-Click Copy: Click any value in the table (such as decimal or hexadecimal) to copy the corresponding value to the clipboard. A "Copied" notification appears at the top of the page, allowing you to use the value directly in your code.
Use Cases
ASCII tables have a wide range of applications in programming and system development. Here are a few typical examples:
Serial Port Communication Debugging: In embedded development and IoT projects, serial port communication is the primary method of data exchange between devices. Developers often need to send specific control characters (such as SOH, STX, ETX) to mark the start and end of data frames. This tool helps developers quickly look up the decimal or hexadecimal values of these control characters to ensure correct implementation of communication protocols.
Text File Format Conversion: Different operating systems use different line endings: Windows uses CRLF (ASCII 13+10), Unix/Linux uses LF (ASCII 10), and older Mac systems use CR (ASCII 13). During cross-platform development or file processing, developers need to understand these differences. This tool visually displays the values and meanings of these control characters, helping troubleshoot line-ending-related issues.
HTML Entity Encoding: In web development, certain special characters (such as <, >, &, etc.) must be escaped as HTML entities to display correctly on a webpage. This tool provides the corresponding HTML entity encoding for each ASCII character, making it easy for developers to quickly look up and use them.
About ASCII Table & ASCII Encoding
About ASCII Table
The ASCII table (American Standard Code for Information Interchange) is one of the most important character encoding standards in computer history. It defines an encoding scheme for 128 characters, covering English letters, digits, punctuation marks, and control characters. ASCII encoding uses 7 binary digits to represent each character, numbered from 0 to 127. Among these, 0-31 and 127 are control characters, while 32-126 are printable characters. The ASCII table query tool displays these characters' decimal, hexadecimal, octal, and binary representations together, making it easy for developers to look them up at any time.
How to Use the ASCII Table Query Tool
Using this tool is very simple. First, you can enter a decimal value (e.g. 65), hexadecimal value (e.g. 41), the character itself (e.g. A), or description text (e.g. newline) in the search box to quickly locate the target character. Second, click the filter tags above to view characters by category: control characters, printable characters, digits, uppercase letters, lowercase letters, or punctuation. Finally, click any value in the table to copy that encoding with one click, making it convenient to use directly in programming or serial port debugging. The entire query process responds in real time without refreshing the page.
Related Knowledge of ASCII Table & ASCII Encoding
ASCII encoding was first published in 1963 and updated in 1967. Its design took into account the keyboard layout of the prevalent teletype machines of the time. Standard ASCII uses 7-bit encoding, with 128 characters in total. Later, people used the extra 128 positions (128-255) in an 8-bit byte to define extended ASCII character sets, such as ISO-8859-1 and Windows-1252. Before Unicode emerged, ASCII was the universal standard for computer communication in the English-speaking world. ASCII and Unicode are closely related: the first 128 characters of Unicode correspond exactly to ASCII, so any text compatible with ASCII has identical byte representation under UTF-8 encoding. Understanding the ASCII table helps troubleshoot common issues such as garbled text and line-ending differences (such as CRLF vs. LF).
ASCII Table FAQ
How many characters are in the ASCII table?
The standard ASCII table has 128 characters, numbered from 0 to 127. Among these, 0-31 and 127 are control characters (33 in total), and 32-126 are printable characters (95 in total). Printable characters include digits (48-57), uppercase letters (65-90), lowercase letters (97-122), as well as punctuation marks and the space character.
What is the difference between control characters and printable characters?
Control characters (0-31, 127) are invisible special characters used to control device behavior, such as line feed (LF, 10), carriage return (CR, 13), and tab (TAB, 9). Printable characters (32-126) are visible characters that can be displayed on screen, including letters, digits, punctuation marks, and the space character.
What is the relationship between ASCII and Unicode?
ASCII is a subset of Unicode. The first 128 characters of Unicode (U+0000 to U+007F) correspond exactly to ASCII, so any text compatible with ASCII has identical byte representation under UTF-8 encoding. ASCII is the cornerstone of Unicode compatibility.
Why does ASCII use only 7 bits?
ASCII was originally designed as a 7-bit encoding (2^7 = 128 characters) because early telecommunication equipment and computers used 7-bit data channels. It was later extended to 8-bit extended ASCII (EASCII, 2^8 = 256 characters), but standard ASCII has always defined only the first 128 characters.
How do I get the ASCII value in programming?
Most programming languages have built-in methods to get the ASCII value of a character. In JavaScript, use the charCodeAt() method; in Python, use the ord() function; in Java, use the (char) cast; and in C/C++, a character itself is an integer representation of its ASCII value.
What is the NUL character in the ASCII table used for?
NUL (the null character, ASCII value 0) is used in the C language as a string terminator, and in databases and file processing to indicate the end of a field or record. In modern programming, the NUL character is also used for memory initialization and data padding.
What is the difference between CRLF and LF?
CRLF (carriage return + line feed, ASCII 13+10) is the line-ending marker for Windows systems, while LF (line feed, ASCII 10) is the line-ending marker for Unix/Linux and macOS systems. This often causes line-ending inconsistencies when transferring text files between different systems, and this tool helps developers quickly identify and convert them.