Binary Numbers and the Computer
Binary is a base-2 number system that uses only two digits: 0 and 1. Every piece of information stored in a computer — text, images, video, audio, code — is ultimately represented as a sequence of 0s and 1s. The reason computers use binary is physical: electronic circuits have two stable states (voltage low/high, or off/on), making binary the natural language of digital hardware.
A single binary digit is called a bit (binary digit). Eight bits form a byte, which can represent 2⁸ = 256 distinct values (0 through 255). A kilobyte (KB) is 1,024 bytes, a megabyte (MB) is 1,024 KB, and so on. Modern storage is measured in gigabytes (GB), terabytes (TB), and petabytes (PB).
Understanding binary is foundational to computer science. Bitwise operations (AND, OR, XOR, NOT, shift) are used in low-level programming, cryptography, graphics, and network protocol design. Encoding schemes like ASCII and Unicode map character sets to binary numbers.