Back to Free Tools

FREE TOOLS

Bitwise Calculator

Apply exact fixed-width integer logic, shifts and rotations with signed, unsigned, binary and hex results.

Decimal integer operands

JSON word report

Browser only

Runs locally in your browser. Your files, pasted content and generated output are not uploaded. Reset clears this tool’s working data.

This tool needs JavaScript. If it does not load, refresh the page and try again.

How to use this tool

  • Choose Width, Operand admission and Operation. Enter Operand A and Operand B only when the selected operation uses it.
  • Enter Count for shifts/rotations. Counts at least the width zero/sign-fill shifts; rotations reduce count modulo width.
  • Select Calculate bitwise result and download bitwise-result.json. Unused operand/count fields are ignored by the operation.

Examples

Signed 8-bit -128 arithmetic-right by 1 yields signed -64, unsigned 192, binary 11000000 and hex c0.

Limitations

  • Widths 8,16,32,64,128 or 256 bits; operands at most 100 decimal digits and within selected range; count0–256; 64 KiB JSON and 30 seconds.
  • No hexadecimal operands, fractions, exponent notation, arbitrary expressions or unbounded shifts.
  • Arithmetic right shift interprets the current-width two-complement sign even when operand admission is unsigned. Finite calculations have no artificial long-running workload claim.

Related tools

No items found.

More tools for your workflow

Explore the related desktop tool