Binary Calculator

Perform addition, subtraction, multiplication, and bitwise operations on binary numbers with decimal conversion

Decimal: 10

Decimal: 12

Result

Binary

00001000

Decimal

8

Hexadecimal

0x8

Octal

0o10

Step by Step

A:
00001010
AND:
00001100
=
00001000
76543210

How to Use This Tool

1

Enter binary numbers in the A and B input fields (only 0s and 1s).

2

Select an operation: AND, OR, XOR, NOT, Add, Subtract, Left Shift, or Right Shift.

3

View the result in Binary, Decimal, Hexadecimal, and Octal.

4

For bitwise operations (AND/OR/XOR), see the step-by-step bit alignment.

About This Tool

Binary Calculator performs arithmetic and bitwise operations on binary numbers. Supports AND, OR, XOR, NOT, addition, subtraction, and bit shifting. Results are displayed in four formats: binary, decimal, hexadecimal, and octal. For bitwise operations, a visual step-by-step display aligns bits vertically with color-coded 0s and 1s and position labels.

Frequently Asked Questions

Bitwise operations are used in low-level programming, networking (subnet masks), graphics (color manipulation), cryptography, and performance optimization. AND masks bits, OR sets bits, XOR toggles bits.

Left shift (<<) multiplies by 2 for each shift position. Right shift (>>) divides by 2. They're used for fast multiplication/division and bit manipulation.

Share This Tool

Related Tools

Back to Math