Hex to Binary Table: Binary, Decimal, and Hexadecimal Values 0–31

Aligned reference table showing decimal, eight-bit binary, and two-digit hexadecimal values from 0 to 31

This hex to binary table aligns every integer from 0 through 31 with its eight-bit binary and two-digit hexadecimal form. It also works as a quick binary to decimal chart when you need to verify a value.

Use the fixed-width columns for lookup, then apply place-value arithmetic or four-bit grouping when converting values beyond the chart.

Hex to Binary Table: 0–31 Decimal, 8-Bit Binary, and 2-Digit Hex

Each row follows the order decimal — 8-bit binary — 2-digit hexadecimal. Hexadecimal letters use uppercase notation from A through F.

  • 0 — 00000000 — 00
  • 1 — 00000001 — 01
  • 2 — 00000010 — 02
  • 3 — 00000011 — 03
  • 4 — 00000100 — 04
  • 5 — 00000101 — 05
  • 6 — 00000110 — 06
  • 7 — 00000111 — 07
  • 8 — 00001000 — 08
  • 9 — 00001001 — 09
  • 10 — 00001010 — 0A
  • 11 — 00001011 — 0B
  • 12 — 00001100 — 0C
  • 13 — 00001101 — 0D
  • 14 — 00001110 — 0E
  • 15 — 00001111 — 0F
  • 16 — 00010000 — 10
  • 17 — 00010001 — 11
  • 18 — 00010010 — 12
  • 19 — 00010011 — 13
  • 20 — 00010100 — 14
  • 21 — 00010101 — 15
  • 22 — 00010110 — 16
  • 23 — 00010111 — 17
  • 24 — 00011000 — 18
  • 25 — 00011001 — 19
  • 26 — 00011010 — 1A
  • 27 — 00011011 — 1B
  • 28 — 00011100 — 1C
  • 29 — 00011101 — 1D
  • 30 — 00011110 — 1E
  • 31 — 00011111 — 1F

Read the Fixed-Width Columns in the Binary to Decimal Chart

The decimal column shows the ordinary base-10 value. The binary column always has eight positions, while the hexadecimal column always has two digits. Leading zeros preserve that width without changing the value: decimal 5 is binary 00000101 and hexadecimal 05.

For binary, each position represents a power of two. From right to left, the eight-bit positions are 1, 2, 4, 8, 16, 32, 64, and 128. A 1 means that position contributes to the total; a 0 means it does not.

Hexadecimal uses sixteen symbols: 0 through 9 represent zero through nine, and A through F represent 10 through 15. This makes each hexadecimal digit equivalent to exactly four binary bits.

Use the Binary to Decimal Table for Place Values and a Worked Check

The binary to decimal table can be recreated by adding the place values beneath every 1. Start at the rightmost bit with 1, double each value as you move left, and ignore positions containing 0.

For example, convert 00010111 to decimal:

0 × 128 + 0 × 64 + 0 × 32 + 1 × 16 + 0 × 8 + 1 × 4 + 1 × 2 + 1 × 1 = 16 + 4 + 2 + 1 = 23.

The table confirms the result: decimal 23 is binary 00010111 and hexadecimal 17. The same arithmetic works for any binary length. For a value with more than eight bits, continue the place values to the left with 256, 512, 1,024, and higher powers of two.

Convert Between Bases with the Binary to Hexadecimal Table Using Four-Bit Nibbles

For binary-to-hexadecimal conversion, divide the binary number into four-bit groups called nibbles, starting from the right. If the leftmost group has fewer than four bits, add leading zeros. Convert each nibble independently using the values from 0000 through 1111.

For a value in the chart, convert 00011111:

00011111 → 0001 1111 → 1F.

The first nibble, 0001, equals hexadecimal 1. The second nibble, 1111, equals hexadecimal F. Therefore, binary 00011111 equals hexadecimal 1F and decimal 31.

Reverse the process for hexadecimal-to-binary conversion: replace every hexadecimal digit with its four-bit equivalent and join the groups. For example, hexadecimal D6 is beyond the 0–31 chart:

D6 → 1101 0110 → 11010110.

Thus, D6 equals binary 11010110. Its decimal value is 13 × 16 + 6 = 214. Keep all four bits in each nibble, including zeros, so every hexadecimal digit remains aligned with its binary representation.