Category guide

Bitwise Tools

Bitwise operations are useful for masks, flags, and low-level protocol fields. The calculator performs fixed-width unsigned operations and shows the result in several number bases. Specify the width and operands explicitly so the output can be compared with your application's behavior.

Choose the right tool

Bitwise Calculator

Calculate AND, OR, XOR, NAND, NOR, or XNOR with an explicit unsigned bit width.

Number Base Converter

Translate a numeric mask between hexadecimal, decimal, and binary before comparing flags.

Text / Binary Converter

Inspect UTF-8 bytes if the source is text rather than a numeric bit mask.

All tools

Example workflow: check a permissions mask

  1. Read the mask definition and choose the same bit width the application uses.
  2. Enter the current value and flag operand, then apply AND to see whether the flag bits are set.
  3. Compare the binary and hex result with a known test case, including values near the width limit.

Before you use the result

Bitwise output is width-dependent: NOT-like results from NAND, NOR, and XNOR are masked to the selected width. This calculator uses unsigned values and cannot infer signedness or endianness from a protocol.

Read the mask before the result

Use Bitwise Calculator when the operation itself matters. AND can isolate a flag, OR can set bits, and XOR can toggle them. The same operands may produce different results if the chosen width changes, especially for operations that invert bits. Check the width in the specification or source code before you compare outputs.

If the issue is only that one source displays a mask in hex and another displays decimal, Number Base Converter is simpler. If the source is text, Text / Binary Converter first exposes its UTF-8 bytes. Neither conversion tells you which flag a bit represents; keep the protocol’s flag table or application constants beside the result.