Computing

How to Read Binary Numbers (and Binary Code)

Read any binary number by adding the place values of its 1 bits, then read binary code as text one byte at a time. Interactive bits and a practice quiz.

To read a binary number, write the place values 1, 2, 4, 8, 16, 32, 64, 128 under the bits from right to left, then add the place values that sit under a 1. For example, 1101 is 8 + 4 + 1 = 13.

Binary works like the decimal numbers you already read, with one change: each place is worth twice the place to its right instead of ten times. That is the whole system. Click the bits below and watch the total change.

Try itClick any bit. The 1 bits contribute their place value; the 0 bits contribute nothing.

16 + 8 + 1

Unsigned 25 Hex 0x19

Read a binary number in three steps

  1. Start at the right. The rightmost bit is the ones place, worth 1.
  2. Double as you move left. The places are 1, 2, 4, 8, 16, 32, 64, 128 and so on. These are the powers of 2.
  3. Add the places that hold a 1.

Try it with 101101:

Place value32168421
Bit101101
Keep?32–84–1

32 + 8 + 4 + 1 = 45.

A quicker mental method avoids the place values altogether: start at 0, and for each bit from left to right, double your total and add the bit. For 101101 that gives 1, 2, 5, 11, 22, 45. Both methods always agree; the doubling one is handy for long numbers.

Count from 0 to 15

Counting shows the pattern: the rightmost bit flips every step, the next one every two steps, the next every four.

DecimalBinaryDecimalBinary
0000081000
1000191001
20010101010
30011111011
40100121100
50101131101
60110141110
70111151111

Four bits cover 0 to 15, which is exactly one hexadecimal digit. Eight bits (a byte) cover 0 to 255. The binary table extends this as far as you like.

MSB and LSB

The least significant bit (LSB) is the rightmost bit, worth 1. The most significant bit (MSB) is the leftmost bit, worth the most. In 10010110 the MSB is worth 128 and the LSB is 0, which tells you the number is even: a binary number is odd exactly when its LSB is 1.

When a value is stored in two’s complement, the MSB carries a negative weight, so 11111111 reads as −1 rather than 255. The two’s complement guide covers that reading.

Practice: read these numbers

Pick a binary number, work it out, then type your answer.

Try itChoose a number, add up its place values, and check your answer.

Add up the place values of the 1 bits, then type your answer.

Place values (right to left)
1, 2, 4, 8, 16, 32, 64, 128

How to read binary code as text

Binary “code” in a message such as 01001000 01101001 is text, not one big number. Read it one byte (8 bits) at a time:

  1. Split the bits into groups of eight.
  2. Read each group as a number: 01001000 = 64 + 8 = 72, and 01101001 = 64 + 32 + 8 + 1 = 105.
  3. Look each number up in the ASCII table: 72 is H and 105 is i.

So the message says “Hi”. Two patterns make this faster. Uppercase letters start at 01000001 (65, “A”) and lowercase at 01100001 (97, “a”), so letters always begin with 010 or 011. Digits begin with 0011: “0” is 00110000 (48).

Characters outside English, such as é or €, use two to four bytes in UTF-8. Paste any byte sequence into the binary translator to see how it decodes, byte by byte. The ASCII explainer traces one letter through decimal, hex and binary.

Common mistakes

  • Reading from the wrong end. Place values grow to the left. 0001 is 1, not 8.
  • Dropping leading zeros in a byte. 1001000 and 01001000 are the same number, but bytes are written with all eight bits so groups line up.
  • Mixing up text and numbers. 00110101 is the number 53, but as text it is the character “5”.

Sources

  1. RFC 20: ASCII format for Network Interchange — IETF
  2. C0 Controls and Basic Latin (code chart) — Unicode Consortium
  3. RFC 3629: UTF-8, a transformation format of ISO 10646 — IETF

How we made this

Computed and checked by tests. All examples and quiz answers are computed by the same functions that power the site's converters (src/lib/calc/bits.js), which are covered by the test suite. Character codes were checked with Python's ord() and str.encode('utf-8').

Performed by Claude, an AI assistant working in the BinConvert repository (Python 3.14.3, Node.js 25), November 16, 2026.

This article was drafted with AI assistance. Every example, calculation and command output on this page was re-run or checked before release; every worked number was recomputed by the test suite. Review: automated test suite and source check, November 16, 2026.

Spotted an error? Tell us and we will correct it.

Copied to clipboard!