Convert integer
Choose the input base and enter up to 4,096 digits (optional + or − sign). Matching 0b, 0o and 0x prefixes are accepted. Use ASCII minus (-); no fractions, exponents or separators.
Result
Enter your inputs and run the tool.
Developer
Convert signed whole numbers exactly among binary, octal, decimal and hexadecimal using BigInt, including integers beyond JavaScript’s safe Number range.
Choose the input base and enter up to 4,096 digits (optional + or − sign). Matching 0b, 0o and 0x prefixes are accepted. Use ASCII minus (-); no fractions, exponents or separators.
Enter your inputs and run the tool.
Inputs are validated against the selected base, then converted using BigInt. Output uses uppercase hexadecimal, no prefixes and no leading zeroes. Negative zero becomes zero; negative numbers retain a minus sign. This is integer notation, not two’s-complement storage, byte encoding, floating-point conversion or physical-unit conversion.
Decimal 255, octal 377 and binary 11111111.
Hexadecimal 20000000000001. This integer is retained exactly, without Number rounding.
The digit cap bounds the maximum binary output to 16,384 digits plus an optional sign. Leading/trailing whitespace is ignored; internal spaces are invalid. A prefix must match the selected base. Scientific notation is rejected in decimal mode; E is a valid hexadecimal digit. BigInt support is required in the browser.
For corrections or suggestions, contact UtilTrove with a non-sensitive example.