---
slug: ascii-table-calculator
title: "ASCII Lookup"
category: developer
updated: 2026-11-17
canonical: https://calcseed.com/c/developer/ascii-table-calculator/
html: /c/developer/ascii-table-calculator/
---

# ASCII Lookup

Look up an ASCII code point and see its character, binary, hex and octal forms. Free and instant.

## Formula

```text
value = b_6_×2^6 + b_5_×2^5 + &hellip; + b_0_×2^0
```

## Inputs

| Variable | Type | Unit | Default |
| --- | --- | --- | --- |
| Code point | number |  | 65 |

## Outputs

| Result | Format |
| --- | --- |
| Character | primary |
| Character | text |
| Binary | text |
| Hex | text |
| Octal | text |

## How it works

### What the lookup returns

Enter a code point from 0 to 127 and the tool returns four things at once: the character itself, its 7-bit binary form, its hex value and its octal value. The default is **65**, which prints as **A**, **1000001** in binary, **41** in hex and **101** in octal. All four are the same number in different bases, which is the point of the table.

### Why ASCII uses seven bits

ASCII was standardized when teletypes sent 7 data bits plus a parity bit, so its code space runs from 0 to 127 and stops there. That gives 128 slots: 95 printable characters and 33 control codes. The calculator always prints binary as seven digits, padding on the left, so code point 1 reads 0000001 rather than 1.

- 0–31: 32 control codes with no glyph, used for terminal and cursor control
- 32: space, the first printable character and the start of the visible range
- 33–126: 94 more printable characters, covering punctuation, digits and both letter cases
- 127: DEL, the 33rd control code, which closes out the 128 slots

The split is 33 control codes against 95 printable characters, and every one of the 128 is a single byte in UTF-8 as well. That is why an ASCII file is byte-for-byte valid UTF-8 and why English text never changes size when it moves between the two encodings.

Hex and octal need no padding rule because their widths follow from the number. Two hex digits cover 0–255 and three octal digits cover 0–511, both wider than ASCII needs. That is why ASCII tables show hex as two characters but binary as seven: hex is sized to a byte while the binary column is sized to the original 7-bit standard.

### Worked example: 65 is A

Start with the binary. 65 = 64 + 1, so bits 6 and 0 are set and the other five are clear, giving 1000001. Flip those same bits back through the weights 64, 32, 16, 8, 4, 2, 1 and the sum returns 65, which confirms nothing was dropped.

For hex, divide by 16: 65 ÷ 16 = 4 remainder 1, so the digits are 41. For octal, divide by 8: 65 ÷ 8 = 8 remainder 1, then 8 ÷ 8 = 1 remainder 0, then 1 ÷ 8 = 0 remainder 1, reading back 101. The character output is A because 65 sits inside the uppercase block 65–90.

The three numeric forms agree, and each is useful in a different place: hex in memory dumps and escape sequences, octal in Unix permissions and older literals, binary when you need to see which individual bits are set in a control byte.

#### Common characters across all four bases

| Dec | Char | Hex | Octal | Binary |
| --- | --- | --- | --- | --- |
| 32 | space | 20 | 40 | 0100000 |
| 48 | 0 | 30 | 60 | 0110000 |
| 65 | A | 41 | 101 | 1000001 |
| 90 | Z | 5A | 132 | 1011010 |
| 97 | a | 61 | 141 | 1100001 |
| 122 | z | 7A | 172 | 1111010 |
| 126 | ~ | 7E | 176 | 1111110 |

Reading down the table shows the two useful plateaus. Digits run 48–57, uppercase letters run 65–90, and lowercase letters run 97–122. Each block is contiguous, so once you know the start of a block you can count to any letter inside it without a lookup.

### The layout of the 128 code points

| Range | Contents | Notes |
| --- | --- | --- |
| 0–31 | Control characters | Newline is 10, tab is 9, carriage return is 13 |
| 32 | Space | First printable character |
| 33–47 | Punctuation | Includes ! " # $ % and the arithmetic signs |
| 48–57 | Digits 0–9 | Ten values, 48 for 0 through 57 for 9 |
| 65–90 | Uppercase A–Z | 26 values, A is 65 |
| 97–122 | Lowercase a–z | 26 values, a is 97, exactly 32 above A |
| 127 | DEL | The last code point, not printable |

The gap between the upper and lower blocks is exactly 32, which is bit 5 set. That single fact lets you convert case without a table: add 32 to uppercase to get lowercase, subtract 32 to go back. It also means the character A and the character a differ by one bit, 0x41 against 0x61.

#### Control characters in practice

The first 32 code points do not print a glyph, and the tool shows an empty character cell for them. Several still do real work: 9 is tab, 10 is line feed, 13 is carriage return, and 0 is the null terminator that ends C strings. A byte of 0 inside a text field often truncates the value in older systems, which is why sanitisers strip it.

### Where people get the bases wrong

- Writing hex 41 and reading it as decimal 41: 0x41 is 65, while decimal 41 is the right parenthesis
- Assuming octal 101 is decimal 101: it is 65, which is why a chmod-style number looks larger than it is
- Padding binary to eight bits when the tool prints seven, which shifts every bit position by one
- Confusing uppercase A at 65 with lowercase a at 97, a 32-point gap that breaks comparisons
- Treating 127 as printable when it is DEL, a control code with no glyph

#### ASCII is not the whole story

Anything above 127 is outside ASCII and outside this tool: the field clamps 200 to 127. Modern text uses Unicode, where 233 is &eacute; and 8,364 is the euro sign. Reading a UTF-8 file as ASCII still works for the first 128 code points, which is why plain English survives the mistake, but any accented character turns into two or more mojibake symbols.

### Limits and rounding

The input is rounded to the nearest integer, then clamped to the 0–127 range in both directions, so 64.6 becomes 65 and 300 becomes 127. Nothing here can overflow a double or lose precision, and the seven-bit binary string is reconstructed from the integer bit by bit rather than from a formatted number, so leading zeros are always preserved exactly.

## FAQ

### What is the ASCII table?

A mapping of 128 code points to characters, from 0 to 127. Each code point can be written in decimal, binary, hex or octal, and this tool shows all four at once with the character.

### What is ASCII 65?

Uppercase A. It is 41 in hex, 101 in octal and 1000001 in binary, and it is the first letter of a contiguous uppercase block running 65–90.

### Why is lowercase a 97 when uppercase A is 65?

The two blocks are separated by exactly 32, which is bit 5. Adding 32 to any uppercase code gives its lowercase form, and subtracting 32 reverses it.

### Why does the binary column always show seven digits?

ASCII is a 7-bit standard, so the tool pads on the left to seven places. Code point 1 prints as 0000001, and the highest value 127 prints as 1111111.

### What are the first 32 code points?

Control characters such as tab (9), line feed (10) and carriage return (13). They produce no visible glyph, so the character cell is empty for those inputs.

### What is ASCII 127?

DEL, short for delete. It is 7F in hex, 177 in octal and 1111111 in binary, and it is the highest code point in the standard, not a printable character.

### Why does decimal 41 give a parenthesis instead of A?

Because hex 41 and decimal 41 are different numbers. Hex 41 is decimal 65, which is A; decimal 41 is the right parenthesis. Always check which base the source used.

### What is the octal form of A?

101. The arithmetic is 1 × 64 + 0 × 8 + 1 = 65, which matches the decimal code point for A.

### Can I look up characters above 127 here?

No. The field clamps anything above 127 down to 127, so accented letters and symbols return DEL. Use a Unicode codepoint tool for those; &eacute; is decimal 233.

## Method and sources

Methodology: Conversions and formats follow the relevant IETF RFCs and IEEE standards, including RFC 4648 for Base64 and RFC 791 for IPv4 addressing.

Last updated: 2026-11-17.
- ASCII character encoding, 7-bit code points 0–127.
