Binary arithmetic

Binary calculator

Exact signed-integer arithmetic with strict binary validation and explicit division remainders.

Input

Calculate

Use only 0 and 1, with an optional leading minus sign and up to 4,096 digits.

Exact output

Calculated value

Up to 4,096 input digits.

Decimal
21
Binary
10101
Hexadecimal
15
Octal
25

Arbitrary-precision binary calculator page loaded