Programmer
HEX/DEC/OCT/BIN • 8/16/32/64-bit • signed/unsigned • bit ops.
How the Programmer Calculator works
Built for base conversion and bitwise reasoning. Switch radix and word size to see how values behave under different representations.
- Choose the number base or bit-width mode you need (hex/dec/bin).
- Enter a value or expression and run the operation.
- Verify results by converting between bases and checking edge cases.
- Copy/export the output or send it to Notebook for documentation.
- Convert values between binary, octal, decimal, and hex.
- Bitwise operations (AND/OR/XOR/shift) depend on word size and signedness.
- Two’s complement representation affects negative values in fixed-width arithmetic.
- Explain panel shows the operation trace so you can learn what happened.
Word size + signedness
In fixed-width integer math, values are stored in a limited number of bits.
Signed integers typically use two’s complement, which changes how the highest bit is interpreted.
Shifts and masks
- Left shift multiplies by powers of two (until overflow at the chosen width).
- Right shift may behave differently for signed vs unsigned integers.
- Masks (AND) are useful for extracting bitfields.
Privacy
Inputs are evaluated locally in your browser.
Clear history anytime from the right rail.