Programmer Calculator
Base conversion + bitwise ops
Bitwise
Quick guide
What can Programmer Calculator (Hex/Bin/Oct) help you do?
Free programmer calculator for base conversion (DEC/HEX/BIN/OCT) and bitwise operations (AND/OR/XOR/NOT/SHIFT).
Best for
Use this to inspect integer representations in decimal, hexadecimal, binary, and octal, or to check fixed-width bit masks. It uses BigInt with selectable 8-, 16-, 32-, and 64-bit widths, rather than floating-point arithmetic or a general expression evaluator.
How to use it
The default width is 32 bits. Edit any base field using digits without an extra 0x, 0b, or 0o prefix. For bitwise operations, enter separate decimal A and B values, choose an operation, and press equals; NOT uses A alone.
How to read the result
Values are masked to the selected width and displayed as unsigned integers, without binary zero padding. Negative decimal values therefore map to an unsigned representation. Right shift operates on the masked nonnegative value, not on a signed negative integer.
Privacy and limits
Conversion and bitwise operations run in the browser using BigInt. This widget does not submit operands to a calculation service or store a calculation history. Numbers taken from private packet captures, identifiers, or memory dumps may still reveal sensitive information in screenshots.
Invalid or empty base input clears the other representations while keeping your edited text for correction. Shift counts must be integers from zero through width minus one; negative and oversized values are rejected. After changing operands, operation, or width, press equals or NOT again.
Frequently Asked Questions
Why programmers use hex?
Memory addresses, colors (#FF5733), bytes are all in hex. 256 = 0xFF.
When are bitwise ops useful?
Embedded systems, performance optimization, bitmap flags.