Skip to content
2x2xKit

Number Base Converter

Convert numbers between binary, octal, decimal and hexadecimal.

How this is calculated
Parses the input in its source base to a decimal integer, then re-encodes it in each target base

Assumptions used in this calculation

  • Integer precision: Conversions use JavaScript's native number type, accurate up to 2^53 − 1; larger values may lose precision.

About this calculator

The number base converter converts a number from binary, octal, decimal or hexadecimal into all four bases at once.

Worked example

255 (decimal)

Result: Binary 11111111, Hex FF

Was this helpful?

Frequently asked questions