TXT · Text & Data tools

Number Base Converter

From
To
Input
Output (Binary)
decimalInputbinaryOutputBatchInput0Items0Output lines0Characters

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.

Frequently Asked Questions

Decimal (base 10), Binary (base 2), Octal (base 8), and Hexadecimal (base 16).

Yes. You can use a leading minus sign (−) or plus sign (+) in any supported base.

Yes. Enable Batch by newline to convert one value per line. Each line is processed independently.

Yes. The converter accepts 0b / 0o / 0x prefixes when they match the selected input base.

Yes. Spaces and underscores are ignored so you can paste formatted values like 1111_0000 or 0xFF FF.

No.

Looking for a faster, single-purpose workflow?

Try a direct conversion below

Explore Our Tools

Browse all tools