A use of two states or permissible values to represent data, such as ON and OFF positions of a light switch or transistors in a computer silicon chip that can be in either the electrical state of ON or OFF.

Binary data are typically represented as a series of single digits referred to as binary digits (or bits) due to each taking on the value of either 0 or 1. The image below shows how a dashed line might be represented in binary.