Local Tool

Number base converter

Convert numbers between BIN, OCT, DEC and HEX. Supports large integers and negative values.

Convert an integer

Up to 4096 digits, with an optional + or - sign. Prefixes 0x, 0b and 0o are accepted for the matching base. No fractions or separators.

How does conversion work?

BigInt integers preserve precision even above 2⁵³. Input is not interpreted as code.

Negative numbers retain a minus sign. The result is not a fixed-width two’s complement representation. Leading zeroes are removed.

Data and results stay in this browser tab.