ASCII Table — Decimal, Hex, Binary, HTML Entity

Interactive table of all 128 standard ASCII characters plus extended ASCII (128-255 / Latin-1). Each row shows decimal, hex, octal, binary, the printable glyph (or name for control characters), and the HTML entity. Search by any column.

How to use the ASCII Table — Decimal, Hex, Binary, HTML Entity

Search by any field: type a character (“A”), a decimal number (“65”), a hex code (“0x41” or “41”), a binary string (“01000001”), or an HTML entity name (“&”). The matching row(s) highlight.

About ASCII Table — Decimal, Hex, Binary, HTML Entity

ASCII (the American Standard Code for Information Interchange) maps 128 characters to integers 0-127. Originally designed for teletype machines in 1963, it remains the foundation of every modern character encoding. UTF-8 is backward-compatible with ASCII for the first 128 code points, which is why English text and code are identical in ASCII and UTF-8. Extended ASCII (128-255) varies by code page; the Latin-1 mapping shown here is the most common Western European extension and is the basis of HTML’s default character set.

Knowing ASCII matters in surprising places: writing parsers that branch on character classes, debugging mojibake (encoding mismatches), filling form-input filters, designing wire protocols. The HTML entity column is especially useful when you need to embed characters that would otherwise be interpreted as markup or are hard to type.

Common use cases

  • Character class debugging — see exactly which characters fall in your regex range.
  • HTML entity lookup — find the named entity for a special character.
  • Control character reference — understand what \x07 (bell) or \x1b (escape) actually do.
  • Number base conversion practice — see the same code point in decimal, hex, octal, binary.

Frequently asked questions

Why is extended ASCII so inconsistent?

There never was a single \xE2\x80\x9Cextended ASCII\xE2\x80\x9D \xE2\x80\x94 different platforms used different code pages (CP1252 on Windows, MacRoman on Mac, ISO-8859-1 on Unix). This table shows the most common Latin-1 / ISO-8859-1 mapping. For complete character coverage, use Unicode (see our Unicode Explorer).

What's the difference between control and printable?

Codes 0-31 (and 127) are control characters \xE2\x80\x94 originally for printer / teletype commands (CR, LF, tab, bell). Codes 32-126 are printable glyphs you can see on screen.

Why is the HTML entity column not filled for every character?

Only some ASCII characters have named entities (&, <, >, etc.). Every character can also be expressed as a numeric entity (A for A) \xE2\x80\x94 the column shows the named form when one exists.