🔢

Number Base Converter

Convert between Binary, Octal, Decimal and Hexadecimal instantly — bit visualiser, number info, fully local.

Quick:
Binary Base 2
Digits: 0, 1 — spaces ignored
Octal Base 8
Digits: 0–7
Decimal Base 10
Digits: 0–9 — max 2⁵³−1
Hexadecimal Base 16
Digits: 0–9, A–F — uppercase

Decimal value
Bits needed
Bytes
Power of 2
Bit visualiser
Enter a number to see its bits.

How it works

1
Type in any field
Enter a value in Binary, Octal, Decimal or Hexadecimal — all other fields update instantly.
2
Input validation
Each field only accepts valid characters for its base. Invalid input is highlighted in red immediately.
3
Bit visualiser
The bit grid shows every binary digit as a coloured square, grouped in bytes of 8. Bright = 1, dim = 0.
4
Number info
See the decimal value, number of bits and bytes required, and whether the number is a power of 2.

Frequently Asked Questions

Is the Number Base Converter free?

Yes, completely free. No account needed.

Is my data sent to a server?

No. All base conversions run locally in your browser using JavaScript's parseInt() and Number.toString().

Which bases are supported?

Binary (base-2), Octal (base-8), Decimal (base-10) and Hexadecimal (base-16). All four fields update simultaneously.

Is there a limit on the number size?

Yes. JavaScript uses 53-bit integer precision (safe integers up to 2^53-1). Very large numbers may lose precision.