BrowserTools
Advertisement
Home / Converters / Number Base Converter (Binary, Octal, Decimal, Hex)

Number Base Converter (Binary, Octal, Decimal, Hex)

Convert numbers between binary, octal, decimal, hexadecimal and any custom base from 2 to 36.

Loading Number Base Converter (Binary, Octal, Decimal, Hex)… If nothing happens, please enable JavaScript.

About Number Base Converter (Binary, Octal, Decimal, Hex)

Numbers can be written in any positional base, base-2 (binary) for digital logic, base-8 (octal) for file permissions, base-10 (decimal) for everyday math and base-16 (hexadecimal) for memory addresses and color codes.

This converter takes a value in any base from 2 to 36 and shows it simultaneously in binary, octal, decimal, hex and your chosen custom base. Computation is done with arbitrary-precision BigInt so very large numbers are handled exactly.

Frequently asked questions

How big a number can I convert?
Any integer, the tool uses JavaScript BigInt so there is no precision loss.
Are negative numbers supported?
Yes, prefix with a minus sign. Two's complement representation is not produced because it depends on word size.
Can I convert fractional numbers?
Currently only integers are supported.
Advertisement