Bitwise Calculator

Compute AND, OR, XOR, NOT and shifts across every number base.

Processed locally — nothing is uploaded

About Number Base Converter

All four bases update together, and the bitwise side runs AND, OR, XOR, NOT and shifts across two values. BigInt underneath means numbers past 2^53 stay exact instead of quietly rounding.

Run AND, OR, XOR, NOT and left/right bit-shift operations on two numbers and see the result across binary, decimal and hexadecimal at once. All computation happens in your browser.

Convert any integer between binary, octal, decimal and hexadecimal all at once, and run AND, OR, XOR, NOT and bit-shift operations on two values. It is an essential helper for low-level programming, embedded work, networking masks and debugging bit flags.

All four bases stay in sync as you type, so one value can be read in each without converting twice. The bitwise panel earns its place when you are working with permission bits, feature flags or network masks.

Learn how this works

Frequently asked questions

What do AND, OR and XOR actually do?

They compare two numbers bit by bit. AND keeps a bit only if both inputs have it, so it is used to mask values. OR keeps a bit present in either, so it is used to combine flags. XOR keeps a bit set in exactly one, which is how you toggle or find differences.

What is the difference between a shift and a multiply?

Shifting left by one doubles a value and shifting right halves it, which is why shifts often appear in performance-sensitive code. The catch is that a right shift discards the bits that fall off the end, so it truncates rather than rounding.

Where would I actually use bitwise operations?

Anywhere many boolean settings are packed into one number — Unix file permissions, feature flags, network protocol headers, and graphics colour channels all do this. A single integer can carry dozens of independent switches.

Common Use Cases

  • Working out which permission bits a mode value like 0644 sets
  • Debugging a flags field in a protocol or API response
  • Checking bit-manipulation logic before committing it

More Number Base Converter tools

Related tools