Letters have codes
Character encodings assign numbers to letters and symbols. Unicode allows text from many writing systems to be represented.
Home / Binary Foundations
Binary foundations · Data representation
Binary uses 0 and 1 as its digits. Each position has a place value, and the value of a number comes from adding the positions marked 1.
Try the converterTry it yourself
Enter a whole number from 0 to 255. The tool shows its eight-bit representation and the place values that add up to it.
Binary explorer
For example, 13 becomes 00001101.
13 = 8 + 4 + 1
Place values
With eight positions, the place values are powers of two from 1 up to 128. For 00001101, the 1s sit over 8, 4, and 1.
Character encodings assign numbers to letters and symbols. Unicode allows text from many writing systems to be represented.
A digital image can be described as a grid of pixels. Each pixel stores data according to a color model and bit depth.
Digital audio represents sound through a sequence of measurements taken at regular intervals.
A fixed number of bits can represent a finite set of values. Signed and unsigned conventions change what those values mean.
Next step
Logic gates take one or more binary inputs and produce an output based on a rule. Combine them and you can model more complex behavior.
Go to Logic LabWhat is 00001010 in decimal? Add the place values for each 1: 8 + 2 = 10.