Create an animated lesson
On requestThis article is free to read. Creating a lesson uses your daily or stored credits; review the language and settings before starting.
What is binary code?
ProgrammingLesson on requestFree to read
Quick answer
Binary is a number system that uses only two digits, 0 and 1. Computers use it because their circuits have two states — on and off — so every piece of data is ultimately stored as binary. Each digit is a 'bit'; eight bits make a 'byte'.
Key things to understand
- Each digit is a 'bit'; eight bits make a 'byte'.
- Place values double (1, 2, 4, 8, 16…) instead of the tens of the decimal system.
- All data — text, images, sound — is encoded as binary numbers.
- On/off transistors map naturally to 1 and 0.
People also ask
Why do computers use binary?
Because electronic circuits reliably represent two states (on/off), which map cleanly to 1 and 0.
How do you count in binary?
Place values double: 1 is 1, 10 is 2, 11 is 3, 100 is 4, and so on.
What is a bit and a byte?
A bit is a single 0 or 1; a byte is eight bits and can represent 256 different values.

