Binary Hex Decimal Converter
Convert between binary, decimal, and hexadecimal integers with arbitrary precision. Prefixes 0b and 0x are accepted when they match the selected input base.
A QUICK WALKTHROUGH
How to use this tool
- Enter an integer and choose its input and output bases.
- Convert the value locally with exact BigInt arithmetic.
- Copy the result when needed.
Exact integer conversion
Binary, decimal, and hexadecimal whole numbers are converted with arbitrary-precision BigInt arithmetic, so large values are not rounded. Negative and positive signs are accepted.
Strict input and bounded size
Optional 0b and 0x prefixes must match the selected input base. Decimal points, exponents, separators, whitespace, and invalid digits are rejected. Inputs are limited to 100,000 characters to keep browser resources bounded.
Local processing
Parsing, conversion, and copying happen locally in your browser. The number is not uploaded or stored.
GOOD TO KNOW
Common questions
Does it support negative numbers?
Yes. A leading plus or minus sign is accepted and the minus sign is preserved in the result.
Are prefixes supported?
Yes. Use 0b for binary or 0x for hexadecimal, and select the matching input base.
Are large integers exact?
Yes. BigInt arithmetic preserves exact integer values up to the 100,000-character input limit.