Binary Calculator
Add, subtract, multiply, divide, or apply bitwise operations to binary/hex/octal/decimal numbers.
Binary Calculator
Shift amount must be a non-negative integer 0–63.
NOT uses 32-bit two's complement (matches C/Java int behavior). Operand B is ignored.
Enter operands and click Calculate to see the result in all four bases.
BIN
Base 2 — grouped in 4-bit nibbles
OCT
Base 8 (octal)
DEC
Base 10 (decimal)
HEX
Base 16 (hexadecimal, uppercase)
Remainder
Copied!
Summary
Add, subtract, multiply, divide, or apply bitwise operations to binary/hex/octal/decimal numbers.
How it works
- Enter Operand A and select its base (BIN, OCT, DEC, or HEX).
- Choose an operation from the dropdown: +, -, x, /, AND, OR, XOR, <<, >>, or NOT.
- For binary and NOT operations, Operand B is ignored automatically.
- Enter Operand B and select its base (also BIN, OCT, DEC, or HEX).
- Click Calculate to see the result displayed in binary, octal, decimal, and hexadecimal.
Use cases
- Debug bitwise flag logic in embedded systems or low-level programming.
- Convert numbers between binary, octal, decimal, and hexadecimal at once.
- Verify AND/OR/XOR masks when working with network subnets or permissions.
- Check the result of left/right shift operations used in performance-optimized code.
Frequently Asked Questions
Last updated: 2026-06-09 ·
Reviewed by Nham Vu