Bitwise Calculator: Perform Binary AND, OR, XOR, NOT & Shift Operations

Calculate Bitwise Operations

This field is ignored for the NOT operation.

Our Bitwise Calculator helps you quickly perform AND, OR, XOR, NOT, Left Shift (<<), and Right Shift (>>) operations on decimal numbers. Understand how data bits are manipulated at the lowest level, crucial for programming, embedded systems, and digital logic. Convert decimals to 32-bit binary and see the bitwise results instantly.

Formula:

The calculator performs common bitwise operations on 32-bit signed integers in JavaScript:

  • AND (&): Sets each bit to 1 if both corresponding bits are 1. Example: 5 (0101) & 3 (0011) = 1 (0001)
  • OR (|): Sets each bit to 1 if at least one of the corresponding bits is 1. Example: 5 (0101) | 3 (0011) = 7 (0111)
  • XOR (^): Sets each bit to 1 if the corresponding bits are different. Example: 5 (0101) ^ 3 (0011) = 6 (0110)
  • NOT (~): Inverts all bits. Example: ~5 (0...0101) = -6 (1...1010 in two's complement)
  • Left Shift (<<): Shifts bits to the left, filling new bits with zeros. Example: 5 (0101) << 1 = 10 (1010)
  • Right Shift (>>): Shifts bits to the right. The sign bit is propagated (signed right shift). Example: 5 (0101) >> 1 = 2 (0010)

Computing and Tools

1/4 Mile ET : Estimate Your Quarter Mile Elapsed Time

Go to Calculator

1x1 Matrix Multiplication

Go to Calculator

3D Distance : Find Distance Between Two Points in 3D Space

Go to Calculator

5x5 Matrix Multiplication

Go to Calculator

65th Percentile : Find the 65th Percentile Online

Go to Calculator

75th Percentile : Quickly Find Q3 for Your Dataset

Go to Calculator