Developer

ASCII Table

All 128 ASCII codes in decimal, hex, octal and binary, with each character, HTML entity and name. Filter the table and click a row to copy.

Loading interactive tool…

Embed this tool on your site

About this tool

This ASCII table lists all 128 ASCII codes, 0 to 127, with each code in decimal, hexadecimal, octal and 8-bit binary, the character, its HTML entity and its name. Control characters 0–31 and 127 appear by their standard abbreviations, such as NUL, LF, ESC and DEL, with caret notation (^J) and, where one exists, the C escape (\n). Type in the filter to find a character, a code (65, 0x41 or 01000001) or a name such as backslash. Clicking a row, or pressing Enter on it, copies the character, the decimal code, the hex code or the HTML entity, whichever you pick. A toggle adds codes 128–255 as ISO-8859-1 (Latin-1). Those codes are not ASCII, and extended ASCII is not one standard: Windows-1252 puts characters such as € and curly quotes in 128–159, which the table notes on each of those rows. Print table opens the rows currently shown on a plain page. The table runs in your browser.

Why use it

  • Every code in four number bases plus the character, HTML entity and name, on one row.

  • Control characters keep their standard abbreviations, C escapes and caret notation.

  • One filter box understands characters, decimal, hex, binary and names.

  • Copy a character or code with a click or the keyboard instead of retyping it.

  • Labels 128–255 honestly as ISO-8859-1 and shows where Windows-1252 differs.

  • Runs in your browser with no sign-up and makes no network requests.

How to use

  1. Scroll the table, or type in the filter: a character (A), a decimal code (65), a hex code (0x41 or 41), an 8-bit binary value (01000001) or a name (tab, backslash).
  2. Choose what a click copies: the character, the decimal code, the hex code or the HTML entity.
  3. Click a row, or move to it with Tab or the arrow keys and press Enter, to copy.
  4. Turn on Show 128–255 to add the ISO-8859-1 (Latin-1) characters and the Windows-1252 notes.
  5. Press Print table to print the rows currently shown.

When it helps

  • Looking up the hex or binary value of a character while debugging a protocol, file format or serial connection.
  • Identifying a control byte such as 0x1B (ESC) or 0x0D (CR) in a hex dump.
  • Finding the HTML entity for a reserved character such as < or &.
  • Learning or teaching how text is stored as numbers.
  • Working out why bytes 128–159 show up as € or curly quotes in Windows-1252 text.

Examples

Letter A

Input
A
Expected result
Dec 65, Hex 41, Oct 101, Binary 01000001, HTML &#65;

Line feed

Input
10
Expected result
Hex 0A, Oct 012, Binary 00001010, LF = Line Feed (newline), \n, ^J

Ampersand by hex code

Input
0x26
Expected result
Dec 38, Char &, HTML &amp; and &#38;

Tips

  • Upper- and lowercase letters differ by 32, a single bit: A is 65 (01000001) and a is 97 (01100001).
  • The digits 0–9 are codes 48–57, so subtracting 48 from a digit’s code gives its value.
  • A dash in the HTML column means a character reference to that code is an HTML parse error; among codes 0–31, only tab (9), line feed (10) and form feed (12) have valid references.
  • Windows ends lines with CR LF (13, 10); Linux and macOS use LF (10) alone.
  • In the 128–255 view, NBSP (160) and SHY (173) look blank but are real characters, a common cause of hidden-character bugs.

Frequently Asked Questions

What is ASCII?
ASCII (American Standard Code for Information Interchange) is a 7-bit character code, first published in 1963, that assigns the numbers 0 to 127 to English letters, digits, punctuation and 33 control characters. Those 128 codes are the same in Unicode and UTF-8.
How many characters are in ASCII?
128, numbered 0 to 127. Of these, 95 are printable (32 to 126, including the space) and 33 are control characters (0 to 31 and 127).
What is the ASCII code for A?
Uppercase A is 65 in decimal, 41 in hex, 101 in octal and 01000001 in binary. Lowercase a is 97, or 61 in hex.
What is extended ASCII?
There is no single extended ASCII. The name is used for many 8-bit character sets that fill codes 128–255 differently, such as ISO-8859-1 (Latin-1), Windows-1252 and DOS code page 437. This table shows 128–255 as ISO-8859-1, which matches Unicode U+0080 to U+00FF, and notes the Windows-1252 character for 128–159.
What do NUL, LF, CR and ESC mean?
They are control characters. NUL (0) is the null character, LF (10) is line feed, the newline on Linux and macOS, CR (13) is carriage return, and ESC (27) starts terminal escape sequences such as color codes.
What does ^J or ^[ mean?
It is caret notation: ^ followed by the character whose code is 64 higher. ^J is 10 (line feed, typed as Ctrl+J), ^M is 13 (carriage return) and ^[ is 27 (escape). DEL, code 127, is written ^?.
Why does code 128 show € in Windows-1252 but PAD here?
In ISO-8859-1, codes 128–159 are C1 control characters with no visible symbol. Windows-1252 uses most of them for printable characters instead, including € at 128, curly quotes at 145–148 and dashes at 150–151. Browsers decode pages labeled ISO-8859-1 as Windows-1252, which is why those characters appear on the web.
How do I copy a character or code?
Pick what to copy under Clicking a row copies, then click the row, or focus it and press Enter. Control characters copy as the actual invisible character, so choose Decimal or Hex when you need a visible code.
What is the difference between a named entity and a numeric reference?
A numeric reference such as &#65; uses the decimal code and works for any allowed character. Named entities such as &amp; and &lt; are easier to read. For ASCII, only &quot;, &amp;, &lt; and &gt; existed in HTML 4; names such as &excl; and &bsol; were added in HTML5.

Explore the category

Glossary

Control character
A code that controls a device or the text layout instead of printing a symbol, such as line feed (10) or escape (27).
Code point
The number assigned to a character, such as 65 for A. ASCII code points match Unicode U+0000 to U+007F.
ISO-8859-1 (Latin-1)
An 8-bit character set that keeps ASCII in 0–127 and adds Western European letters and symbols in 160–255.
Windows-1252
Microsoft’s variant of Latin-1 that puts printable characters such as € and curly quotes in 128–159.
Caret notation
Writing a control character as ^ plus a letter or symbol, such as ^C for code 3 (End of Text).
A LITTLE HELP. A LOT DONE.
Good tools.
Great flow.

Your shortcut to the everyday. Create, convert, calculate,
and get back to what you love.

✓ Free to use✓ No sign-up✓ 500+ possibilities