Extract a byte
0xA1B2C3D4 AND 0xFF โ 0xD4AND with FF keeps the lowest eight bits and clears every higher bit.
Hexadecimal arithmetic and bitwise operations. Input hex values โ result in hex, decimal, and binary.
Field guide ยท verified August 2026
This calculator uses arbitrary-precision integers for binary arithmetic. Negative output is displayed as a 64-bit two's-complement value; NOT, NEG, and byte reversal intentionally operate on 32 bits. Those width rules matter when you are debugging masks, registers, colors, binary protocols, or file headers.
0xA1B2C3D4 AND 0xFF โ 0xD4AND with FF keeps the lowest eight bits and clears every higher bit.
0x01 SHL 0x08 โ 0x0100A left shift by eight moves the set bit into the ninth bit position.
REV(0x12345678) โ 0x78563412Useful when comparing 32-bit values across big-endian and little-endian representations.
0x prefix; spaces are ignored.0x10 means sixteen bit positions.