Skip to content
PixelCursor(opens in a new tab)
Mathematics

Number & Unit Converter

Universal converter for numbers and units

Mode
Input base
  • Binary (base 2)
  • Octal (base 8)
  • Decimal (base 10)
  • Hexadecimal (base 16)
Kept conversions

Digits 0 to 9. Arrow keys count up and down.

  • 0b1111 1111
  • 0o377
  • Your input
    255
  • 0xFF

Bits

Click a bit to flip it and watch every system change.

  1. FF

How the number is built

Every digit counts a power of 10. Add up the places that are not zero:

  1. 2× 10²200
  2. 5× 10¹50
  3. 5× 10⁰5
  4. = 255

Kept conversions

Press Enter or Keep and your conversions collect here.

About this tool

  • Place value

    In every positional system a digit is worth its value times a power of the base. 255 is 2·100 + 5·10 + 5, and FF is 15·16 + 15: the same number.

  • One base unit each

    Every conversion goes through the category's base unit: the metre, the kilogram, the second. The inch has been defined as exactly 2.54 cm since 1959.

  • Exact to the last bit

    Whole numbers are converted with arbitrary precision, so even 2^64 or a 256-bit hash comes out exact, not rounded.

Keyboard

M
Switch between number systems and units
S
Next input base, or swap the units
N
A surprising example
↵
Keep the conversion (in the field)
↑↓
Count up or down (in the field)