Binary & Hex Converter
Convert signed whole numbers exactly between binary, decimal, hexadecimal and octal. Type in any field to update the other three.
About This Tool
Converts complete signed integers between bases 2, 8, 10 and 16 with JavaScript BigInt, so values beyond Number.MAX_SAFE_INTEGER are not rounded.
Programmers, students and anyone working with positional numeral systems. Negative outputs use a leading minus sign, not a fixed-width two’s-complement representation.
Inputs and conversions remain in your browser. A 4,096-character input limit prevents accidental browser slowdowns.
Method and source
Each input must be a complete whole-number string valid for its selected base. Conversion uses the ECMAScript BigInt type, whose integer value is not limited to a fixed bit width. Source reviewed 23 June 2026: ECMAScript BigInt specification.