This is a complete, searchable reference for the standard 7-bit ASCII table — the 128 character codes (0 to 127) that underpin almost all text encoding. It is invaluable for programmers converting between characters and numeric codes, debugging data, working with binary or hex dumps, escaping characters for HTML, and learning how computers represent text. Every cell that holds a value is a button, so you can copy a decimal code, a hex byte, the literal character, or an HTML entity with a single click — no manual retyping, no transcription mistakes.
How it works
ASCII assigns each character a number from 0 to 127. The table shows every code in several forms at once — the character, its decimal, hexadecimal, octal and binary value, and its HTML entity. Codes 0-31 and 127 are non-printing control characters (NUL, tab, LF, CR, ESC and so on), shown by their standard abbreviation; codes 32-126 are printable characters including space, digits, letters and punctuation. The HTML-entity column shows the named entity where one exists — for example the ampersand uses the named entity, the less-than and greater-than signs use theirs — and falls back to the numeric form for everything else. You can filter to show only printable or only control characters, search by number, hex value, character, name or entity, and optionally extend the table to bytes 128-255 (rendered using Latin-1, the most common single-byte interpretation). The whole table is generated in code, so the hex, octal and binary columns are always exact and consistent.
Example
To convert the letter A to hex, find row 65 and read the Hex column: A is decimal 65 = 0x41 = octal 0o101 = binary 01000001, and its HTML reference is the numeric entity for 65. To escape an ampersand in markup you would look up decimal 38 and copy its named HTML entity.
| Char | Dec | Hex | Octal | Binary | HTML entity |
|---|---|---|---|---|---|
| (space) | 32 | 0x20 | 0o040 | 00100000 | nbsp / 32 |
| 0 | 48 | 0x30 | 0o060 | 00110000 | numeric 48 |
| A | 65 | 0x41 | 0o101 | 01000001 | numeric 65 |
| a | 97 | 0x61 | 0o141 | 01100001 | numeric 97 |
| ~ | 126 | 0x7E | 0o176 | 01111110 | numeric 126 |
Everything runs in your browser; nothing you type or copy is uploaded.