ASCII Character Reference

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.

What is ASCII?

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.

How to use ASCII Character Reference

  1. Browse or search Scroll the table, or type in the Search field.
  2. Read the row Check Dec, Hex, Oct, Binary, HTML, Char and Name.
  3. Copy a value Click any value; the status line confirms what was copied.
  4. Narrow the list Clear the search box to bring back all 128 characters; the status line shows the match count.

Frequently asked questions

Does the table include extended ASCII, such as accented letters?

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.

What is the difference between CR and LF?

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.

Why are some HTML entities shown twice?

Five characters have a named entity as well as a numeric one: quote, ampersand, apostrophe, less-than and greater-than.

Is ASCII the same as UTF-8?

ASCII text is valid UTF-8 with identical bytes, but UTF-8 also encodes all other Unicode characters using more bytes.

How do I search for a hex value?

Type 0x followed by the value, such as 0x7F.