Bitwise Calculator (AND/OR/XOR/shifts)
Register-style bitwise math with aligned binary view — accepts decimal, 0x hex and 0b input; logical vs arithmetic shifts.
Bitwise Calculator computes AND/OR/XOR/NOT and shifts on 32-bit values with aligned binary display — free, instant and private in your browser. Firmware writers composing register masks and students learning bit manipulation use it to skip the datasheet algebra: type your numbers, read the answer with the substituted formula shown step by step, and share an exact permalink of the calculation.
About Bitwise Calculator (AND/OR/XOR/shifts)
Bitwise Calculator computes AND/OR/XOR/NOT and shifts on 32-bit values with aligned binary display using the standard engineering relation: C-style semantics: >>> logical shift, >> arithmetic (sign-propagating). Worked live: 0xF0 & 0x3C = 0x30 — the binary view shows exactly which bits survived. The result recalculates on every keystroke, the worked-example panel shows your numbers substituted into the formula, and the Copy permalink button encodes the inputs in the URL so a colleague opens exactly your calculation. Everything runs client-side — nothing you type leaves your device.
How to use Bitwise Calculator (AND/OR/XOR/shifts)
- 1Enter your values — the tool starts with realistic defaults for this exact use case, so the worked example is meaningful immediately.
- 2Read the live result and the worked-example panel, which substitutes your numbers into the formula step by step.
- 3Adjust any input to compare scenarios, then use Copy result or Copy permalink to share the calculation.
Why use Bitwise Calculator (AND/OR/XOR/shifts)?
- ✓Implements the real formula — C-style semantics: >>> logical shift, >> arithmetic (sign-propagating) — with the substitution shown, not a black box
- ✓Built for firmware writers composing register masks and students learning bit manipulation
- ✓Copy result and permalink buttons — share the exact calculation in a README, forum answer or design review
- ✓100% free, no sign-up, runs entirely in your browser (works offline once loaded)
Frequently asked questions
How do you calculate bitwise?+
AND/OR/XOR/NOT and shifts on 32-bit values with aligned binary display follows C-style semantics: >>> logical shift, >> arithmetic (sign-propagating). For example, 0xF0 & 0x3C = 0x30 — the binary view shows exactly which bits survived. The calculator applies the same relation and shows the substituted arithmetic so you can verify every step.
What are the standard register-manipulation idioms?+
Set: reg |= (1<<n). Clear: reg &= ~(1<<n). Toggle: reg ^= (1<<n). Test: (reg >> n) & 1. Field insert: reg = (reg & ~mask) | (value << shift). These five lines are half of embedded programming.
Logical vs arithmetic right shift — when does it matter?+
On negative signed values: arithmetic shift copies the sign bit in (preserving division-by-2 semantics), logical fills with zeros. Porting code between signed and unsigned register types silently swaps behaviours — a classic source of once-a-week bugs.
Is the Bitwise Calculator free and private?+
Yes — completely free with no sign-up or usage limits, and it runs entirely in your browser: the values you enter are never uploaded or stored on a server.
Related Electronics tools
PCB Trace Width Calculator (IPC-2221)
Minimum trace width for your current and temperature rise — IPC-2221 formula with copper weight, layer choice and a step-by-step worked example.
● LiveMicrostrip Impedance Calculator
Z₀ of a surface microstrip from width, height and εr (IPC-2141A), plus effective dielectric constant and propagation delay.
● LiveStripline Impedance Calculator
Characteristic impedance of an embedded stripline trace from geometry and εr — the inner-layer companion to the microstrip tool.
● Live