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 offline

Search & Filter

DecimalHexadecimalOctalBinaryCharacterHTML EntityDescription
0 0x0 0000000000Null character
1 0x1 0100000001Start of heading
2 0x2 0200000010Start of text
3 0x3 0300000011End of text
4 0x4 0400000100End of transmission
5 0x5 0500000101Enquiry
6 0x6 0600000110Acknowledge
7 0x7 0700000111Bell
8 0x8 01000001000Backspace
9 0x9 01100001001Horizontal tab
10 0xA 01200001010Line feed
11 0xB 01300001011Vertical tab
12 0xC 01400001100Form feed
13 0xD 01500001101Carriage return
14 0xE 01600001110Shift out
15 0xF 01700001111Shift in
16 0x10 02000010000Data link escape
17 0x11 02100010001Device control 1
18 0x12 02200010010Device control 2
19 0x13 02300010011Device control 3
20 0x14 02400010100Device control 4
21 0x15 02500010101Negative acknowledge
22 0x16 02600010110Synchronous idle
23 0x17 02700010111End of transmission block
24 0x18 03000011000Cancel
25 0x19 03100011001End of medium
26 0x1A 03200011010Substitute
27 0x1B 03300011011Escape
28 0x1C 03400011100File separator
29 0x1D 03500011101Group separator
30 0x1E 03600011110Record separator
31 0x1F 03700011111Unit separator
48 0x30 06000110000000
49 0x31 06100110001111
50 0x32 06200110010222
51 0x33 06300110011333
52 0x34 06400110100444
53 0x35 06500110101555
54 0x36 06600110110666
55 0x37 06700110111777
56 0x38 07000111000888
57 0x39 07100111001999
65 0x41 010101000001AAA
66 0x42 010201000010BBB
67 0x43 010301000011CCC
68 0x44 010401000100DDD
69 0x45 010501000101EEE
70 0x46 010601000110FFF
71 0x47 010701000111GGG
72 0x48 011001001000HHH
73 0x49 011101001001III
74 0x4A 011201001010JJJ
75 0x4B 011301001011KKK
76 0x4C 011401001100LLL
77 0x4D 011501001101MMM
78 0x4E 011601001110NNN
79 0x4F 011701001111OOO
80 0x50 012001010000PPP
81 0x51 012101010001QQQ
82 0x52 012201010010RRR
83 0x53 012301010011SSS
84 0x54 012401010100TTT
85 0x55 012501010101UUU
86 0x56 012601010110VVV
87 0x57 012701010111WWW
88 0x58 013001011000XXX
89 0x59 013101011001YYY
90 0x5A 013201011010ZZZ
97 0x61 014101100001aaa
98 0x62 014201100010bbb
99 0x63 014301100011ccc
100 0x64 014401100100ddd
101 0x65 014501100101eee
102 0x66 014601100110fff
103 0x67 014701100111ggg
104 0x68 015001101000hhh
105 0x69 015101101001iii
106 0x6A 015201101010jjj
107 0x6B 015301101011kkk
108 0x6C 015401101100lll
109 0x6D 015501101101mmm
110 0x6E 015601101110nnn
111 0x6F 015701101111ooo
112 0x70 016001110000ppp
113 0x71 016101110001qqq
114 0x72 016201110010rrr
115 0x73 016301110011sss
116 0x74 016401110100ttt
117 0x75 016501110101uuu
118 0x76 016601110110vvv
119 0x77 016701110111www
120 0x78 017001111000xxx
121 0x79 017101111001yyy
122 0x7A 017201111010zzz
127 0x7F 017701111111Delete 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.