Radix Lab

Digital logic design · interactive lab

Radix Lab2·8·10·16

Convert between number systems, see why each method works, and watch signed binary arithmetic happen one bit at a time.

BIN
OCT
234
DEC
156
HEX
9C

One value, every base

Type a number in any base from 2 to 36, with or without a fractional part. Every other representation updates as you type, including the binary codes BCD, Excess-3 and Gray.

Key ideaIn base r, a digit in position k is worth digit × rk. Base 16 borrows the letters A–F for the digit values 10–15.
Input base

16-bit register

Click any bit. Each position carries a weight of 2k, and the value is the sum of the weights whose bit is 1.