Skip to content
henke.ws
  1. Home
  2. Tools
  3. Number base converter
Runs in your browserDeveloper

Number base converter

Enter a whole number in any of the five bases; conversion runs in your browser with BigInt.

Runs locally — nothing is uploaded
Result
Nothing yet — enter data or press Example.

How to use

  1. 1Enter a number; the prefixes 0x, 0b and 0o are recognised.
  2. 2Choose the base it is written in.
  3. 3Click any result to copy it.

Up to 10,000 digits. The conversion uses BigInt, so there is no rounding as with ordinary JavaScript numbers above 2^53.

The way processors store negative integers: −1 in 8 bits is 0xFF. For negative input the tool shows the smallest standard width (8 to 128 bits) that holds it.

No, whole numbers only. Fractions often have no finite form in another base: 0.1 repeats forever in binary.

Infrastructure headaches?

Tell us about your stack — we reply within one business day.