Binary numbers are a way of writing numbers using only 0s and 1s.
Computers use binary numbers because their hardware is built from tiny switches that are either off (0) or on (1).
Flip the Bits: Try It Yourself!
Toggle the switches on and off to see how 6-digit binary numbers convert to decimal.
Binary
000000
Decimal
0
How to Use This Tool
- Toggle the switches. ON (1) adds the switch’s value. OFF (0) adds nothing.
- Understand the values. The rightmost switch is worth 1. Each switch to its left is worth twice as much: 2, 4, 8, 16, and 32.
- Check the result. The binary number and its decimal equivalent appear below the switches. Simply add together the values of the switches that are ON to get the decimal number.
What Numbers Can You Represent?
With six switches, you can represent decimal numbers from 0 to 63. The same principle works with more switches, allowing you to represent larger numbers.