ToolsMaxxing

Number base converter

Convert a whole number between binary, octal, decimal, hex and base 36.

Your files stay on your device

How it works

  1. 1Type a number, for example 255, ff or 0b1010.
  2. 2Leave the input base on Auto, or choose it yourself.
  3. 3Read the value in every base, including binary in groups of four bits.
  4. 4Copy the line you need.

What the options do

Input base
Auto reads the prefixes 0x (hex), 0b (binary) and 0o (octal) and treats everything else as decimal. Choose a base to read plain digits as that base.

Privacy

This tool runs in your browser. Your files are never uploaded to a server.

Questions people ask

How big a number can it convert?

Any size. It uses arbitrary-precision integers, so values past 2 to the power 53, where normal JavaScript numbers lose accuracy, stay exact.

Does it handle negative numbers?

Yes, with a minus sign. The result shows the sign followed by the magnitude, not a two's complement bit pattern.

Does it support fractions?

No. Only whole numbers are converted.

Why does hex 0x0F show as F?

Leading zeros carry no value, so they are dropped. The grouped binary line pads to full groups of four bits.

Are underscores or spaces allowed in the input?

Yes. 1111_0000 and 1111 0000 are both read as 11110000.

Related tools