NUMBER BASES

To a computer, 1024 is the round number and 1000 is not. One and the same value reads 156 in base 10, 10011100 in base 2 and 9C in base 16; the three spellings differ only in the weight each column carries. Four bits bundle into exactly one hex digit, which is why hex is shorthand for binary, visible in colour codes and memory addresses; three bits make one octal digit, a habit surviving in file permissions such as 755. Negative numbers use two’s complement — invert every bit, then add one — so eight bits span −128 to 127 and −1 is written 11111111.

▸ Loading the live counter…
▸ Building place-value columns (powers of the base)
▸ Syncing 4 bases: 2 · 8 · 10 · 16
▸ Calibrating the bit odometer
▸ Loading the divide-and-remainder & two's complement algorithms
▸ Ready — Online. ✅
0%
⌂ Mathematics

Simulation room Number bases

Number Bases
Online
2 · 8 · 10 · 16
Live number table
🔟 Multi-base counter
bit odometer · nibble
Decimal (10)—
Binary (2)—
Octal (8)—
Hex (16)—
Bits used—
Highlighted base—
Tip
The same ONE value, four ways to write it. Each column is a power of the base; the smaller the base, the longer the representation. 4 bits = 1 nibble = 1 hex digit — that is why computers love base 16.
—
Click a bit cell to flip 0↔1 · scroll to change the value · pick a scenario on the right
Your browser has canvas disabled.
Representation length (digit count) over time bit (2)hex (16)dec (10)
About Number Bases

To a computer, 1024 is the round number and 1000 is not. One and the same value reads 156 in base 10, 10011100 in base 2 and 9C in base 16; the three spellings differ only in the weight each column carries. Four bits bundle into exactly one hex digit, which is why hex is shorthand for binary, visible in colour codes and memory addresses; three bits make one octal digit, a habit surviving in file permissions such as 755. Negative numbers use two’s complement — invert every bit, then add one — so eight bits span −128 to 127 and −1 is written 11111111.

Related topics in Mathematics