Searchable ASCII/Unicode table with decimal, hex, binary and HTML codes.
The ASCII Character Reference is a searchable table of all 128 ASCII characters. For each one it shows the decimal, hexadecimal, octal and binary values, the HTML entity, the character and its name. Click any value to copy it.
ASCII, the American Standard Code for Information Interchange, assigns numbers 0 to 127 to letters, digits, punctuation and control codes. Codes 0 to 31 and 127 are control characters from the teletype era, such as line feed (10), carriage return (13), tab (9) and escape (27). Code 32 is the space, and 33 to 126 are the printable symbols, digits and letters. Uppercase A is 65 and lowercase a is 97, a difference of 32, which is one bit. ASCII is a subset of Unicode and of UTF-8, so every ASCII text is also valid UTF-8 with the same byte values. A reference table is useful when reading hex dumps, writing parsers, escaping characters in HTML or converting between number bases.
No. It covers the original 7-bit range, codes 0 to 127. Characters above that depend on the encoding, such as Latin-1 or Windows-1252.
Carriage return (13) returns to the start of a line and line feed (10) moves down a line. Unix uses LF alone for a newline, Windows uses CR followed by LF.
Five characters have a named entity as well as a numeric one: quote, ampersand, apostrophe, less-than and greater-than.
ASCII text is valid UTF-8 with identical bytes, but UTF-8 also encodes all other Unicode characters using more bytes.
Type 0x followed by the value, such as 0x7F.