colby.campthe little toolbox
← Back to tools

A USEFUL LITTLE THING / 014

Number Base Converter.

Convert whole numbers between binary, octal, decimal and hex.

Exact integer arithmetic, including values larger than JavaScript’s safe-number range. Up to 1,000 digits and an optional minus sign. No fractions, separators or prefixes such as 0x. Hex output is uppercase; negative values use a minus sign, not two’s complement.