Convert signed math-style integers between decimal, binary, octal, and hexadecimal bases. The tool relies on native large-number processing, making it safe for long integers without floating-point rounding.
Input formatting
Use the dropdowns to select your input and output bases, or flip them quickly with the Swap button. The converter accepts standard signed numbers utilizing an optional leading + or -.
Prefixes like 0b, 0o, and 0x are allowed as long as they match your selected input base. To make long numbers easier to read, you can insert spaces or underscores anywhere in the input (e.g., 1111_0000 or 0xFF FF)—the parser automatically strips visual separators before converting.
Batch processing
Turn on Batch by newline to process a column of values simultaneously. Enable Trim lines to remove surrounding whitespace or hidden characters from pasted lists.
Because each line evaluates independently, an invalid digit on one line won’t break the rest of the conversion. The tool outputs a direct error message on the failing line so you can spot the typo. For hex outputs, toggle the Uppercase hex option to choose between A-F and a-f formatting.