webutilkit

Number Base Converter

Convert whole numbers between binary, octal, decimal, hexadecimal, or any base from 2 to 36.

Base 16

How it works

A number in base N is read digit by digit, each one multiplied by a power of N based on its position. This tool parses your number in the source base into an arbitrary-precision integer, then re-renders that same integer in the target base — so a value stays exact no matter how large it gets, unlike ordinary floating-point arithmetic.

Common bases

Binary (base 2) and hexadecimal (base 16) are the two most common bases in computing: binary maps directly to how bits are stored, and hex is a compact, human-readable way to write groups of four bits. Octal (base 8) shows up in older Unix file permissions.

Limitations

This converts whole numbers only. Fractional values are not supported, since most fractions that terminate cleanly in one base repeat infinitely in another — for example, one-third is exact in base 3 but repeating in base 10.

Frequently asked questions

Is there a limit to how large the number can be?

No. Conversion uses arbitrary-precision integer arithmetic, so it stays exact even for numbers far larger than JavaScript’s normal number type can represent.

Does it support fractional numbers?

No, only whole numbers (integers). Fractional values do not have a finite representation in every base, so this tool is scoped to integers.