# ASCII Table

URL: https://hifreetools.com/developer/ascii-table

> A complete, searchable ASCII reference for codes 0–127, showing the decimal, hexadecimal, octal, and binary value of every character plus control-code names.

## Quick answer

ASCII is a 7-bit character encoding that maps the integers 0–127 to characters. Codes 0–31 and 127 are non-printing control codes (like NUL, LF, CR, and DEL), code 32 is the space, and codes 33–126 are printable punctuation, digits, and the Latin letters A–Z and a–z. For example, the letter "A" is decimal 65, hex 0x41, octal 101, and binary 01000001.

## Formula

- ASCII is 7-bit: codes 0–127 (2^7 = 128)
- hex = code in base 16 (2 digits), octal = base 8 (3 digits), binary = base 2 (8 bits)
- 0–31 and 127 are control codes; caret notation ^X = code XOR 64 (^@ for 0, ^? for 127)
- 32–126 are printable: space, digits, punctuation, A–Z and a–z ('a' = 'A' + 32)

The table is generated from a fixed list of all 128 ASCII codes. For each code the tool computes the hexadecimal value (base 16, two digits), the octal value (base 8, three digits), and the binary value (base 2, eight bits) directly from the decimal number. Printable codes (32–126) show the actual character; control codes (0–31, plus 127) show their standard mnemonic and C escape sequence where one exists. The search box accepts a decimal number, a hex value (with "0x"), a binary value (with "0b"), an octal value (with "0o"), a control-code mnemonic like LF or SPACE, or a single character, and the lookup card shows the matching code. A bare number is read as decimal, so type 0o101 for octal — and the table below filters to every matching row. Everything runs in your browser — nothing is uploaded.

## Inputs

- Search or look up a code; default 

## Worked examples (computed by the page's own function)

- Search or look up a code = A → Character = A, Decimal = 65, Hex = 0x41, Octal = 101  (A = 65 = 0x41 = 0o101 = 0b01000001)
- Search or look up a code = 0x41 → Character = A, Decimal = 65, Hex = 0x41, Octal = 101  (A = 65 = 0x41 = 0o101 = 0b01000001)
- Search or look up a code = LF → Character = LF, Decimal = 10, Hex = 0x0A, Octal = 012  (LF = 10 = 0x0A = 0o012 = 0b00001010)
- Search or look up a code = 32 → Character = SPACE, Decimal = 32, Hex = 0x20, Octal = 040  (SPACE = 32 = 0x20 = 0o040 = 0b00100000)
- Search or look up a code = 127 → Character = DEL, Decimal = 127, Hex = 0x7F, Octal = 177  (DEL = 127 = 0x7F = 0o177 = 0b01111111)

## Verification

Checked against 17 reference cases (expected values computed independently). Reviewed 2026-10-27. Latest change 2026-10-28: Moved to the schema formatter renderer with a sourced ledger. Codes above 127 (200, 0x80) now say so instead of silently looking up the first digit; TAB works as a mnemonic (as the FAQ promised); an 8-digit binary like 01000001 is looked up directly; a lone space looks up SPACE; the looked-up code is always in the table. Printable characters are described by their Unicode name and control codes also show caret notation (^J). The table can be downloaded as CSV.

## FAQ

**What is ASCII?**
ASCII (American Standard Code for Information Interchange) is a character encoding that assigns the numbers 0 to 127 to letters, digits, punctuation, and control codes. It is a 7-bit standard, so it defines exactly 128 codes and forms the basis of UTF-8 for the first 128 code points.

**What is the ASCII code for the letter A?**
Uppercase 'A' is decimal 65, hex 0x41, octal 101, and binary 01000001. Lowercase 'a' is decimal 97 (0x61), exactly 32 higher than its uppercase form.

**What are control characters in ASCII?**
Control characters are codes 0–31 plus 127 (DEL). They are non-printing and signal actions rather than display a glyph — for example LF (10) starts a new line, CR (13) returns the cursor, HT (9) is a tab, and NUL (0) marks an empty value.

**How do I look up a control code like LF or CR?**
Type its mnemonic into the search box. LF resolves to code 10 (newline), CR to 13, TAB/HT to 9, NUL to 0, SPACE to 32, and DEL to 127. The lookup card and the table both show the matching row with its dec, hex, octal, binary, and escape sequence.

**What is the difference between ASCII and Unicode?**
ASCII defines only 128 characters (codes 0–127). Unicode is a much larger standard covering virtually every writing system, but it was designed so its first 128 code points are identical to ASCII, which is why ASCII text is also valid UTF-8.

**How do I convert a character to its binary value?**
Type the character into the search box; the tool shows its 8-bit binary value. For example 'A' is 01000001. Each ASCII code fits in seven bits, so it is padded to eight bits (one byte) with a leading zero.

**Why does ASCII only go up to 127?**
ASCII is a 7-bit code, and seven bits can represent 2⁷ = 128 distinct values, numbered 0 through 127. Codes 128–255 require an eighth bit and belong to extended, code-page-specific encodings rather than standard ASCII.

**Is my data uploaded when I use this tool?**
No. The ASCII table is generated and searched entirely in your browser using JavaScript, so any character or code you type never leaves your device.


## Sources

- [RFC 20 — ASCII format for Network Interchange](https://www.rfc-editor.org/rfc/rfc20)
- [man7.org — ascii(7) manual page](https://man7.org/linux/man-pages/man7/ascii.7.html)
- [Unicode — C0 Controls and Basic Latin (U+0000–U+007F)](https://www.unicode.org/charts/PDF/U0000.pdf)
- [Wikipedia — ASCII](https://en.wikipedia.org/wiki/ASCII)

Runs in the browser; nothing is uploaded. Cite as: HIFreeTools, "ASCII Table", https://hifreetools.com/developer/ascii-table
