Number Base Converter

Convert between binary, decimal, octal and hex

Binary
Octal
Decimal
Hexadecimal

About Number Base Converter

Number Base Converter shows a number in binary, octal, decimal, and hexadecimal simultaneously, live as you type, entirely in your browser — nothing is uploaded to a server. There's no separate 'target base' selector or Convert button: pick the base your input is written in, and all four results update instantly. It handles whole numbers, including negative ones, but not fractional or decimal-point values.

How to use Number Base Converter

  1. 1Type a number into the Value field.
  2. 2Select the base your input is written in from the 'From Base' dropdown.
  3. 3Read all four conversions — binary, octal, decimal, and hexadecimal — updating live below.
  4. 4Change the value or the 'From Base' setting at any time to see updated results instantly.

Frequently Asked Questions

What number bases does it support?

Binary (base 2), octal (base 8), decimal (base 10), and hexadecimal (base 16) — shown simultaneously.

Is there a Convert button or a target-base selector?

No — there's only a 'From Base' selector. All four conversions display live at once; there's no separate step to pick a single target base.

Can I convert negative numbers?

Yes, negative numbers are supported and converted correctly across all four bases.

Can I convert decimal (fractional) numbers, like 3.5?

No — only whole numbers are supported; any fractional part is truncated.

Tips & Tricks

  • All four bases update live as you type — there's no need to click a button.
  • Set 'From Base' to match how your input is written; entering '10' as hexadecimal gives a different result than entering it as decimal.
  • For very large numbers, results may lose precision since conversion relies on JavaScript's native number handling.
  • Only whole numbers are supported — fractional values will be truncated, not converted with decimal places.