ASCII table
The table lists every ASCII code from 0 to 127 with its decimal, hexadecimal, octal and 8-bit binary value, the character and its name. Search by number, 0x hex value, character, abbreviation or a word from the name.
Runs in your browser: nothing you enter is sent anywhere.
How to use it
- Scroll the table, or type into the search box.
- Read across a row: decimal, hex, octal, 8-bit binary, the character and its name.
- Control codes show their standard abbreviation (NUL, LF, ESC) in the Char column.
How it works
Each row is computed from the code: hex is base 16, octal base 8 and binary is padded to eight digits. Names for control codes are the standard ones; printable names follow the Unicode names for the same characters.
Worked example
Search 0x41. The row for decimal 65 appears: hex 41, octal 101, binary 01000001, the character A, “Latin capital letter A”. Search LF to get code 10, the line feed that ends a line on Unix.
Tips
Digits 0 to 9 are codes 48 to 57, so subtracting 48 from a digit character gives its value. Uppercase and lowercase letters differ by 32. To convert whole texts, use the text to binary tool.
Frequently asked questions
What is ASCII?
ASCII is a 7-bit character code with 128 values. Codes 0 to 31 and 127 are control codes, such as line feed and tab, and 32 to 126 are the space and the 94 printable characters, which are letters, digits and punctuation.
Does ASCII include accented letters or the euro sign?
No. Those belong to extended 8-bit sets such as Windows-1252 and ISO 8859-1, or to Unicode. This table stops at 127. The first 128 Unicode code points are identical to ASCII.
How do I get a letter's code?
Find it in the table. Capital A is 65 (0x41, binary 01000001) and lowercase a is 97 (0x61). The two differ by 32, which is the single bit 00100000.
What do the search forms mean?
A number from 0 to 999 is read as a decimal code, 0x41 as hex, a single character finds itself, an abbreviation like LF or ESC finds that control code, and any longer text is searched in the names.