keisoku

Base-N Bitwise Logic Calculator

Compute AND, OR, XOR, NOT, and left/right shifts on two integers and view the result in binary, octal, decimal, and hexadecimal, with the full bit pattern.

Input

Input base
Operation

Result

Result of A AND B (decimal)

12

Binary

0000000000001100

Octal

14

Decimal

12

Hexadecimal

C

Bit representation (16-bit)0000 0000 0000 1100
Binary0000000000001100
Octal14
Decimal12
Hexadecimal0xC

How it works

  • Enter Value A and Value B, then choose an operation from AND, OR, XOR, NOT, left shift, or right shift to see the result in binary, octal, decimal, and hexadecimal simultaneously.
  • Pick the input base from binary, octal, decimal, or hexadecimal. For example, choose hexadecimal to type values like "FF" directly.
  • NOT (negation) flips the bits, so it does not use Value B. Enter only Value A.
  • For left and right shifts, Value B is the number of bit positions to shift, given as a decimal value. Right shift is computed as a zero-fill (unsigned) shift.
  • Calculations are performed as unsigned 32-bit integers, so the maximum supported value is 4,294,967,295 (FFFFFFFF in hex).
  • The bit representation is grouped every four digits, making it easy to read the bit layout at a glance.