fixtdoc

Number Base Converter

Convert integers between binary, octal, decimal, and hexadecimal, precisely, even for values too big for a normal calculator.

Files stay on your device

Binary (base 2)

0b11111111

Octal (base 8)

0o377

Decimal (base 10)

255

Hexadecimal (base 16)

0xff

Values are converted with exact big-integer math, so numbers far beyond the usual 64-bit range stay precise.

Frequently asked questions

Which bases are supported?

Binary (base 2), octal (base 8), decimal (base 10), and hexadecimal (base 16). Enter a value in any one and see the other three at once.

How large a number can it handle?

Far larger than a normal calculator. Conversion uses exact big-integer math, so values with hundreds of digits convert precisely, with no floating point rounding.

Why did my input get rejected?

Each base has its own digits: binary only allows 0 and 1, octal allows 0 to 7, and hex allows 0 to 9 plus A to F. The tool names the offending character so you can fix it.