ASCII Table Reference

Every ASCII code in decimal, hex, octal, binary and HTML entity — searchable, click-to-copy.

Ad placeholder (leaderboard)
Enjoying the tools? Go Pro for £4.99 (one-time) and remove all ads — forever, on this device. Remove ads — £4.99

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.

CharDecHexOctalBinaryHTML entity
(space)320x200o04000100000nbsp / 32
0480x300o06000110000numeric 48
A650x410o10101000001numeric 65
a970x610o14101100001numeric 97
~1260x7E0o17601111110numeric 126

Everything runs in your browser; nothing you type or copy is uploaded.

Ad placeholder (rectangle)