Bitwise Calculator

Enter your First Number (A) and Second Number (B), choose your Input Format, Bit Width, and Bitwise Operation (AND, OR, XOR, and more), and the Bitwise Calculator gives you the Result in Decimal, Binary, and Hexadecimal — plus a binary breakdown of both inputs so you can see exactly what's happening at the bit level.

Enter a number in the selected format

Enter a number in the selected format

Results

Result (Decimal)

--

Result (Binary)

--

Result (Hexadecimal)

--

Input A (Binary)

--

Input B (Binary)

--

Results Table

Frequently Asked Questions

What are bitwise operations?

Bitwise operations are mathematical operations that work on individual bits of binary numbers. The most common operations are AND (&), OR (|), XOR (^), and NOT (~), which compare corresponding bits of two numbers.

What is a bitwise AND operation?

The AND operation returns 1 only when both corresponding bits are 1, otherwise it returns 0. For example, 1010 AND 1100 = 1000 because only the leftmost bit is 1 in both numbers.

What is a bitwise OR operation?

The OR operation returns 1 when at least one of the corresponding bits is 1, and 0 only when both bits are 0. For example, 1010 OR 1100 = 1110.

What is a bitwise XOR operation?

XOR (exclusive OR) returns 1 when the corresponding bits are different, and 0 when they are the same. For example, 1010 XOR 1100 = 0110.

What are bit shift operations?

Bit shift operations move all bits left or right by a specified number of positions. Left shift (<<) multiplies by powers of 2, while right shift (>>) divides by powers of 2.

How do I convert between number systems?

This calculator automatically converts between binary, decimal, and hexadecimal. Binary uses base-2 (0,1), decimal uses base-10 (0-9), and hexadecimal uses base-16 (0-9, A-F).

What is bit width and why does it matter?

Bit width determines how many bits are used to represent a number. Common widths are 8, 16, or 32 bits. The width affects the range of possible values and how overflow is handled.

More Electrical & Electronics Tools