Bitwise Calculator

Your details

The bitwise operation to apply. NOT only uses A; shift operations treat B as the shift count.
The numeric base you want to type your inputs in.
Number of bits to use. Larger widths allow bigger values; results are masked to this width.
First operand. Enter a value in your chosen input base.
Second operand (not used by NOT). For shift operations this is the shift count.
Result (decimal)
12

Unsigned decimal result of the bitwise operation

Result (binary)00001100
Result (octal)14
Result (hexadecimal)C
A in binary00111100
B in binary00001101
Result12
A (binary len)-

& result: 12 decimal (0xC)

  • The 8-bit result has 2 set bits (1s) and 6 clear bits (0s).
  • AND is a masking operation: bits in the result are 1 only where both operands have 1.
  • Hex shorthand: 0xC, which is compact notation used in low-level code and color values.

Next stepCopy the binary, octal or hex result from the output cards. For multi-step logic you can chain results by pasting one result as the next operand.

= Powered by OnlyCalculators