Skip to content

Bitwise Calculator

Embed

Paste this where you want Bitwise Calculator on your site. Adjust the height to fit.

<iframe src="https://www.browserutils.dev/embed/bitwise-calculator/" width="100%" height="500" frameborder="0" loading="lazy" title="Bitwise Calculator"></iframe>
<p style="font-size:12px;margin:4px 0 0"><a href="https://www.browserutils.dev/tools/bitwise-calculator/">Bitwise Calculator</a> by BrowserUtils</p>

Perform bitwise AND, OR, XOR, NOT, and shift operations.Runs in this tab.

15
F
1111

Next step

About Bitwise Calculator

Free online bitwise calculator. Perform AND, OR, XOR, NOT, left shift, and right shift operations and see results in decimal, hexadecimal, and binary. It runs in your browser. Nothing is sent to a server.

Questions

What is a bitwise AND operation?
Bitwise AND compares each bit of two numbers and returns 1 only when both bits are 1. For example, 12 AND 10 = 8 because 1100 AND 1010 = 1000.
What is the difference between logical and bitwise shift?
A logical right shift fills the leftmost bits with zeros, while an arithmetic right shift preserves the sign bit. Left shifts always fill with zeros.
When would I use bitwise XOR in practice?
XOR is used for toggling bits in flag registers, simple checksums, swapping two variables without a temporary (a ^= b; b ^= a; a ^= b), and basic encryption/obfuscation of data.
How do I use the bitwise calculator to set or clear a specific bit?
To set bit N, OR the number with (1 << N). To clear bit N, AND the number with the NOT of (1 << N). Enter both values into this tool to see the result in decimal, hex, and binary.
Is my data sent to a server when using this bitwise calculator?
No. All bitwise operations are computed in your browser using JavaScript. Nothing you enter leaves your machine.

More in Math & Calculators

All 16 math & calculators