Skip to main content
Calctrove Calctrove

Bitwise Calculator

Bitwise Calculator

Paste input, adjust settings if needed, then run.

More actions
Input: manual
InputsTextManual input • Auto-updateWaiting

Settings

2

Status

Waiting for output.

Health 55/100

Result size
Live

0chars

Run to update output.

Copy result = output only. Copy report = output + settings.

Flow
  • Normalize input as integer operands.
  • Apply bitwise operator (&, |, ^, <<, >>, ~).
  • Render outputs in decimal and binary views.
Example

Worked example: bitmask with AND

  1. 1 Set a = 13 (1101) and b = 10 (1010).
  2. 2 Apply AND operation.
  3. 3 Result is 8 (1000).

Binary output confirms exactly which bits remain set.

How
  1. Enter operand values and choose an operation.
  2. Run calculation and inspect decimal/binary output.
  3. Copy result for docs, tests, or code comments.
Cases
  • Validate feature flag masks in embedded apps.
  • Debug register-level operations in firmware workflows.
  • Teach binary operator behavior with immediate feedback.
Avoid
  • Using floats when bitwise operations require integers.
  • Forgetting signed integer behavior for right shifts.
  • Reading only decimal output and missing binary intent.
FAQ
Does bitwise calculator send my input to a server?

No. Bitwise Calculator handles the input in your browser whenever possible, so routine conversions, previews, and copy actions stay on your device instead of being sent to Calctrove servers.

Does NOT (~) use only one input?

Yes. NOT is unary and flips bits of a single integer operand.

Why do I sometimes get negative numbers?

JavaScript bitwise ops use signed 32-bit integer representation.

Switch
Switch12