Beetwise

Learn binary, hex and bitwise operations

Each guide answers one question. Each guide has a worked example and a link to the bit editor.

Concepts

How binary, two’s complement, masks and byte order work.

Converters

Convert between decimal, hex and binary, with every step.

Operations

AND, OR, XOR, NOT and the two shifts, with truth tables.

  • Bitwise AND

    The AND operation compares the two values bit by bit.

  • Bitwise OR

    The OR operation compares the two values bit by bit.

  • Bitwise XOR

    The XOR operation compares the two values bit by bit.

  • Bitwise NOT

    The NOT operation inverts every bit of one value.

  • Left shift

    A left shift moves every bit to a higher position.

  • Right shift

    A right shift moves every bit to a lower position.

Serial and registers

Plot live serial data and read a hardware register bit by bit.