memory

Bitwise Calculator

Perform bitwise AND, OR, XOR, NOT, shifts, and arithmetic on integers in binary, octal, decimal, or hexadecimal. Results update live in all four bases. Runs in your browser.

123Decimal
8
#abcdefHexadecimal
8
o777Octal
10
1010Binary (32-bit)
00000000000000000000000000001000
memory

About Bitwise Operations

Performs AND, OR, XOR, NOT, shifts, and arithmetic on arbitrary-size integers. For plain base conversion use theNumber Base Converter.

shield_lock

Secure & Private Client-Side

This tool runs entirely in your browser. No data is sent to any server, ensuring your information remains private and secure.

About Bitwise Calculator

Perform bitwise AND, OR, XOR, NOT, shifts, and arithmetic on integers in binary, octal, decimal, or hexadecimal. Results update live in all four bases. Runs in your browser.

Frequently Asked Questions

How large can the numbers be? expand_more

Arbitrary size. The calculator uses BigInt, so values can exceed 64-bit integers without overflow.

How are negative numbers shown in binary? expand_more

The 32-bit binary display uses two's complement representation for negative values, matching how most processors store signed integers.

What do the shifts do? expand_more

Left shift (<<) multiplies by powers of two. Right shift (>>) performs signed (arithmetic) shift, preserving the sign bit for negative numbers.

Need plain base conversion? expand_more

Use the [Number Base Converter](/tools/number-base-converter/) for converting a single value between bases without operations.

Is my input private? expand_more

Yes. Everything runs locally in your browser.

Common Use Cases

  • Flags & Masks: Compute permission bitmasks for apps and OS calls.
  • Embedded: Manipulate registers when programming microcontrollers.
  • Graphics: Pack and unpack color channels into integers.
  • Cryptography: Inspect bit patterns used by hash and cipher routines.