Perform exact hexadecimal arithmetic, integer-base conversion and explicitly masked 8/16/32/64-bit operations with BigInt.
01 / CALCULATION INPUTS
02 / RESULT & SUPPORTING CALCULATIONS
Enter your values locally; no inputs are uploaded.
Check validation feedback before reviewing the browser-generated result.
Review the explanation, copy supported outputs or reset the workspace.
Preserve exact integer digits across bases and distinguish arbitrary-width arithmetic from selected-width two’s-complement patterns and masked shifts.
Preserve exact integer digits across bases and distinguish arbitrary-width arithmetic from selected-width two’s-complement patterns and masked shifts. Supporting calculations and limitations are shown alongside the result, with relevant local examples.
Hex Calculator inputs are processed in browser memory. Entered measurements, addresses, dates and financial amounts are not sent to external calculation services or saved by this calculator. Ordinary website page requests may still be logged. Clipboard copying occurs only when you choose it.
Yes. Integer operations and conversions use BigInt rather than JavaScript’s 32-bit numeric bitwise operators. Operand lengths and shift sizes are bounded, while supported results retain exact digits.
The width applies to bitwise operations and shifts only. Addition, subtraction, multiplication, division and base conversions use arbitrary-width signed integer arithmetic without silently truncating to that selected width.
For bitwise operations, positive hex values are bit patterns and negative signed operands are converted to the selected width. In signed mode a set high bit gives a negative decimal interpretation. Results still show the complete masked hex/binary pattern.
NOT is masked to 8, 16, 32 or 64 bits. Left shifts are masked and discard bits beyond the selected width. Logical right shifts zero-fill; arithmetic right shifts require signed mode and sign-extend. Shift counts cannot exceed the selected width.
Division truncates toward zero, with any nonzero remainder keeping the dividend’s sign. The result satisfies A = quotient times B plus remainder. Division by zero is rejected.
Yes. Hexadecimal, decimal, binary and octal representations each have a copy action. Hex input may use an optional 0x prefix, while decimal-to-hex and binary-to-hex modes validate their explicit source bases.