Skip to main content
bitwiseandorxorshiftbinarydeveloper-toolswebdevtoolbox

How to Use the Bitwise Calculator — WebdevToolbox Guide

Perform AND, OR, XOR, NOT, and shift operations on two numbers, with binary, hex, and decimal views.

WebdevToolbox Team3 min read

Bitmask flags, permission bits, and low-level protocol fields all come down to bitwise math — but working it out by hand in binary is slow and error-prone. This tool computes it instantly and shows every representation at once.

What Is the Bitwise Calculator?

Enter two values in decimal, hex, binary, or octal, pick an operation — AND, OR, XOR, NOT, or one of three shift variants — and see the result immediately in decimal, hex, and binary, alongside the binary representation of both inputs.

How to Use It

  1. Open the tool at /tools/bitwise-calculator.
  2. Enter Value A and Value B (decimal, or prefixed with 0x, 0b, or 0o).
  3. Click an operation button — AND, OR, XOR, NOT, <<, >>, or >>>.
  4. Read the result in decimal, hex, and binary, plus the binary breakdown of both inputs.

Key Features

  • Auto-detected input formats — decimal, hex (0x), binary (0b), and octal (0o) prefixes are all recognized.
  • Seven operations — AND, OR, XOR, NOT, left shift, arithmetic right shift, and logical (zero-fill) right shift.
  • Signed 32-bit semantics, matching JavaScript’s native bitwise operators exactly.
  • Full binary breakdown of both operands, not just the result.

When to Use This Tool

  • Working out bitmask/flag combinations for permissions or feature flags.
  • Understanding the difference between arithmetic (>>) and logical (>>>) right shift on negative numbers.
  • Debugging low-level protocol or binary-format fields that rely on bitwise math.

Try It Now

Open Bitwise Calculator directly, or press ⌘K and type the tool name from anywhere on the site.


Part of the Math & Numbers collection on WebdevToolbox — free, browser-based developer tools with no login required.

Tagged with

bitwiseandorxorshiftbinarydeveloper-toolswebdevtoolbox

Related posts