Radix Converter

Radix Converter instantly converts a number between binary, octal, decimal and hexadecimal, showing all four bases at once. It uses BigInt internally, so precision holds even for numbers beyond 64 bits. It also handles any base from 2 to 36, fractions, two's complement and the IEEE-754 floating-point bit layout.

Binary (2)11111111
Octal (8)377
Decimal (10)255
Hex (16)ff

Any base (2–36) and fractions

1010.11

You can use a decimal point; the fraction is cut at 12 digits.

Two's complement (signed integers)

Bit pattern110101100xD6

IEEE-754 floating point

float32 · 0x3DCCCCCD0 01111011 10011001100110011001101Sign · Exponent · MantissaActually stored value: 0.10000000149011612
float64 · 0x3FB999999999999A0 01111111011 1001100110011001100110011001100110011001100110011010Sign · Exponent · MantissaActually stored value: 0.100000000000000005551

How it works

  1. 1Pick the source base (2, 8, 10 or 16) and enter the number.
  2. 2The other three bases are computed instantly and shown as cards.
  3. 3An invalid digit for the chosen base (e.g. '2' in binary) shows a warning.
  4. 4Copy any of the results you need.

Frequently asked questions

Does it support negative numbers?+

Yes, prefix the value with `-`; the sign is preserved when converting to the other bases.

Does precision get lost for very large numbers?+

No. The conversion uses JavaScript's `BigInt` type, so hex/binary values well beyond `Number`'s 2^53 safe-integer limit still convert exactly.

Are decimal (fractional) numbers supported?+

No, only integers are supported; entering a fractional part is treated as invalid.

Does case matter for hex input?+

No, `ff` and `FF` are handled the same way; output is produced in lowercase.

Is the number I enter sent to a server?+

No, the entire conversion runs in your browser.

Why can't 0.1 be represented exactly in binary?+

Its binary expansion is infinite; float32/float64 truncate it, so the stored value is very close to but not exactly 0.1. The tool shows the actually stored value.

Embed on your site

Size
480 × 360px
<iframe
  src="https://toolsqube.com/en/software-engineering/radix-converter/embed"
  width="480" height="360"
  style="border:0;border-radius:14px"
  title="Radix Converter · ToolsQube"
  loading="lazy">
</iframe>

Want to go deeper on this topic: Software Engineering Tools Guide →

Command Palette

Search for a command to run…