The Magic Codex

ASCII Table

Every ASCII code from 0 to 127 — decimal, hexadecimal, character, name, and HTML entity. Search, filter by group, and click any row to copy. Free, instant, no signup.

128 codes
DecHexCharNameHTML entityCopy

How to read an ASCII table

ASCII assigns a number to every basic character your keyboard can type. Programmers meet these numbers constantly — in URLs (%20 is ASCII 32, the space), in HTML entities, and in code that converts between characters and numbers.

  1. Find a code three ways. Type a decimal number (65), a hex code (0x41), a character (A), or a name (bell) into the search box.
  2. Filter by group. Codes 0–31 and 127 are control characters — invisible instructions like line feed and escape. Codes 32–126 are printable — letters, digits, and punctuation you can see.
  3. Copy what you need. Click a row to copy its character; use the code button to copy its decimal and hex codes for your code.

Decimal, hex, and HTML entities

The same character has three common numeric forms: decimal (A = 65), hexadecimal (A = 0x41), and the HTML entity (&#65; renders as A in a web page). Five characters have named entities you have probably seen — &lt; for <, &gt; for >, &amp; for &, &quot; for ", and &apos; for ' — because they would otherwise be read as HTML markup.

What is ASCII?
The American Standard Code for Information Interchange: a 7-bit encoding that assigns the numbers 0–127 to letters, digits, punctuation, and control characters. Every modern text encoding, including UTF-8, keeps ASCII's first 128 codes identical.
What are control characters?
Codes 0–31 plus 127: non-printing instructions inherited from teletype machines, like NUL (null), BEL (bell), TAB (horizontal tab), LF (line feed), and DEL (delete).
How do I convert a decimal code to hex?
Each ASCII code's hexadecimal value is shown beside it in the table. A is 65 in decimal and 41 in hex. Programmers often write hex codes with a 0x prefix, like 0x41.
What is an HTML entity?
A code that displays a character in a web page: &#65; renders as A. Named entities exist for special characters — &lt; for <, &gt; for >, &amp; for & — and every character also has a numeric form: &# followed by its decimal code.
What is the difference between ASCII and Unicode?
ASCII covers 128 characters; Unicode covers over 149,000 and includes ASCII's first 128 codes unchanged. See the Unicode Lookup tool for the wider set.
Can I copy a character by clicking it?
Yes — click any row to copy its character, or use the code button on a row to copy its decimal and hexadecimal codes. For control characters, the click copies the standard abbreviation (like NUL), since the code itself is not printable.

More from the codex

Questions about this tool?

Found a wrong code or have a suggestion? Email [email protected] — every message is read by the indie dev behind the codex.