Boneyard Tools

ASCII Table (Decimal, Hex, Octal, Binary)

This is the complete ASCII table for all 128 code points, from 0 to 127, with each character shown in decimal, hexadecimal, octal and 8-bit binary alongside its name. Printable letters, digits and symbols appear as their glyph, while the 33 non-printing codes show a standard abbreviation like NUL, LF or DEL and a control tag. Search by number, hex value, character or name and copy any glyph in one click.

How to use the ASCII table

  1. Type a decimal number, a hex value (0x41 works), a single character or a name into the search box.
  2. Watch the count update to show how many of the 128 codes match your query.
  3. Read the Dec, Hex, Oct, Binary, Char and Description columns for each matching row.
  4. Note the amber control tag on non-printing codes such as NUL, HT, LF and DEL.
  5. Click Copy on any row to put that character on your clipboard.

Examples

Look up the letter A by its code

65
A: dec 65, hex 41, oct 101, binary 01000001

Find the newline control code by name

LF
10: line feed (newline), hex 0A, oct 012, binary 00001010

Search by hex with a 0x prefix

0x41
Matches code 65, the letter A

Frequently asked questions

What is the ASCII code for the letter A?

Uppercase A is decimal 65, hex 41, octal 101 and binary 01000001. Lowercase a sits 32 codes higher at decimal 97, which is why toggling case is a single-bit change.

What are ASCII control characters?

Codes 0 to 31 plus 127 are non-printing control characters that once steered teleprinters and terminals, such as NUL (0), bell BEL (7), tab HT (9), line feed LF (10) and carriage return CR (13). The table flags each with a control tag.

How many characters are in the ASCII table?

Standard ASCII defines exactly 128 codes, from 0 to 127. Codes 128 to 255 belong to extended sets like Latin-1 or Windows-1252 and are not part of standard ASCII, so this table stops at 127.

What is the difference between LF and CR?

Line feed (LF, 10) moves down one line and is the Unix and macOS newline. Carriage return (CR, 13) returns to the start of the line. Windows text files use CR immediately followed by LF to end a line.

How do I convert an ASCII code to hex, octal or binary?

Search for the decimal code or the character and read across the row. The space, for example, is decimal 32, hex 20, octal 040 and binary 00100000, all shown side by side.

How does the search box match my query?

A single character is matched exactly and case-sensitively, so A finds code 65 and not 97. Longer queries match a decimal value, a hex code (with or without a 0x, backslash-x, U+ or hash prefix), an abbreviation like lf or nul, or any word in the description.

Why do uppercase and lowercase letters differ by 32?

In ASCII the uppercase block starts at 65 and the lowercase block starts at 97, a gap of exactly 32. That constant offset means flipping bit six converts between the two cases, a trick still used in low-level string code.

Can I use this offline or send data to a server?

The whole table is generated and searched in your browser, so nothing you type is uploaded. Once the page has loaded, the lookup keeps working even without a connection.

Does this cover Unicode or emoji?

No. ASCII is a 7-bit standard covering only the first 128 code points, which Unicode later adopted as its own first block. For accented letters, other scripts or emoji you need a Unicode reference, not this ASCII table.

Learn more

Related tools