Binary Calculator

Perform arithmetic in binary

Browser ProcessingYour data never leaves your browser

A in decimal

10

B in decimal

12

A + B (Addition)

10110

= 22 decimal

A - B (Subtraction)

-10

= -2 decimal

A × B (Multiplication)

1111000

= 120 decimal

A ÷ B (Division)

0

= 0 decimal

Bitwise Operations

A AND B

1000

A OR B

1110

A XOR B

110

NOT A

0101

Bit Shift Operations on A

Shift by:
bits

Left Shift (A << 1)

10100

Right Shift (A >> 1)

101

A in Other Bases

Octal:12Decimal:10Hexadecimal:A

Bit Visualization (A)

0
0
0
0
1
0
1
0
7
6
5
4
3
2
1
0

Two's Complement (8-bit)

One's Complement:11110101Two's Complement:11110110