Bits
Toggle individual bits and watch the value change across binary, octal, decimal and hex at once.
1101 1110 1010 1101 1011 1110 1110 1111
a 1101 1110 1010 1101 1011 1110 1110 1111 b 0000 0000 0000 0000 1111 1111 1111 1111 a & b 0000 0000 0000 0000 1011 1110 1110 1111
Values are masked to the chosen width, so a 32-bit shift left really does drop its high bits and negative numbers show as two's complement. Underscores and spaces are ignored, so grouped output pastes straight back in. A 0x, 0b or 0o prefix wins over the base chips unless its letter is a digit in that base — in hex, 0b1010 is the number B1010. shr copies the sign bit down; ushr feeds in zeros.
Bitmasks and flag fields are best understood by seeing them. Working out which bit a permission or feature flag sets, or why a mask is not matching, is much easier when the bits are laid out and clickable.
Click bits to flip them and every representation updates together, with shifts and the usual bitwise operations available. It is a small tool that removes a class of arithmetic mistake.
What people open it for
- Working out the value of a bitmask or flag combination
- Understanding what a shift or mask does to a value
- Converting between bases while keeping the bit pattern visible
In the terminal
tools bits
Every utility is also a command in the desktop's shell.