Binary ↔ Decimal
Base conversion
BigInt — values beyond 2^53 work correctly. Leading 0b / 0x / 0o are accepted but stripped. Whitespace and underscores are ignored.What is Binary ↔ Decimal?
Convert between binary, decimal, hexadecimal, and octal simultaneously — type in any field and the other three update instantly. Uses BigInt internally so values above 2^53 convert correctly. Accepts leading 0b / 0x / 0o prefixes and ignores whitespace and underscores in the input.
How do I use Binary ↔ Decimal?
- Type a value in any field.
- The other three bases update immediately.
- Copy the value you need.
When should I use Binary ↔ Decimal?
Binary ↔ Decimal is for everyday base conversions. For arbitrary bases (2-36), use Base Convert. For physical unit conversion, use Unit Converter.
Which bases can it convert between?
Binary (base 2), octal (base 8), decimal (base 10), and hexadecimal (base 16). Source and target bases are independent — any pair works.
Does it handle negative numbers and floats?
Negative integers are shown as two's-complement in binary / octal / hex for the chosen bit width (8, 16, 32, 64). Floating-point uses IEEE 754 encoding.
Why does my number overflow?
Because it exceeds the chosen bit width. Bump the width (8 → 16 → 32 → 64) or switch to decimal if the value is larger than 2^64.
Is my file uploaded anywhere?
No. Everything runs in your browser. Your files never leave your device, and there is no server component for this tool.