Online developer tool
Binary / Bitwise Calculator
Enter a value in any base, inspect its bits, and run AND, OR, XOR, NOT, shift, and rotate operations at 8, 16, or 32-bit width.
Value converter
Decimal
42
Hex
0x2A
Binary
00101010
Octal
052
Bits
C code
#define MASK_VALUE 0x2A
uint8_t mask_value = MASK_VALUE;Calculator
Operations
Result
Decimal
0
Hex
0x00
Binary
00000000
Octal
000
Client-side only · nothing is uploaded