Hexadecimal table

A hexadecimal table with decimal, binary and octal for every value from 00 to FF, or up to FFF. Type a hex or decimal value to see its bits and jump to its row. Download the table as CSV or print it.

Click a row to copy it.
Reviewed bySam Siewert
Last updated · How we test

Runs in your browser. Nothing you type is uploaded.

How to use the hex table

  1. Type a hex value like FF or 0x1A, or a plain decimal number, in the box at the top.
  2. See its binary with place values, plus hex and decimal side by side. The matching row lights up in the table.
  3. Pick the range in Show: 0 to F, 00 to FF or 000 to FFF.
  4. Click a row to copy it, or press Download CSV or Print.

A value with only digits, such as 10, is read as decimal. Add 0x in front, as in 0x10, to mean hex.

The 16 hex digits

Hexadecimal is base 16. It uses 0 to 9 and then the letters A to F for 10 to 15. Each hex digit stands for exactly 4 bits, which is why programmers use hex as a short way to write binary. The printable hexadecimal worksheet starts from this same idea. Text is often shown in hex too, and the ASCII table lists the hex code for each character.

HexDecimalBinaryHexDecimalBinary
000000881000
110001991001
220010A101010
330011B111011
440100C121100
550101D131101
660110E141110
770111F151111
Hex digits in binary: 0 is 0000, 1 is 0001, through 9 which is 1001, then A is 1010 (10), B is 1011, C is 1100, D is 1101, E is 1110 and F is 1111 (15).

How to read a two-digit hex value

The left digit counts sixteens and the right digit counts ones. So 7B is 7 × 16 + 11 = 123, and the hex to decimal converter shows this step for longer values. In binary you just write the two 4-bit groups side by side: 7 is 0111 and B is 1011, so 7B is 0111 1011. One byte always fits in two hex digits, from 00 to FF, the same 256 values the binary numbers chart lists in base 2.

Hex values worth knowing

HexDecimalBinaryWhere you see it
0A100000 1010Line feed character
20320010 0000Space character
41650100 0001Letter A
7F1270111 1111Largest 7-bit value, signed byte max
801281000 0000Top bit set
FF2551111 1111Largest byte, full color channel
1002561 0000 0000Values in one byte
FFFF65,53516 onesLargest 16-bit value
Two-digit hex example: 7B is 7 times 16 plus 11, which is 123 in decimal, and 0111 1011 in binary. FF is 255, the largest value in one byte.

Converting with the table

To convert hex to binary, replace each digit with its 4 bits from the table above, or paste a longer value into the hex to binary converter. To go from binary to hex, split the bits into groups of 4 from the right and look each group up, which the binary to hex converter does for any length. For decimal, multiply each hex digit by its place value: 1, 16, 256, 4096 and so on, then add. To go the other way, the decimal to hex converter shows the steps for any number.

Frequently asked questions

What is FF in decimal?

255. F is 15, so FF is 15 × 16 + 15.

What is A in hexadecimal?

A is 10 in decimal and 1010 in binary.

Why does hex use letters?

Base 16 needs 16 single digits. After 0 to 9 the letters A to F fill in 10 to 15.

How many bits is one hex digit?

Four. Two hex digits make one 8-bit byte.

Scroll to Top