Binary Calculator
A binary calculator is a computational tool for base-2 numerical systems. It converts integers between binary, octal, decimal, and hexadecimal representations, and performs arithmetic and bitwise logical operations (AND, OR, XOR) on binary digit sequences, showing a bit-by-bit carry row for addition and two's complement forms. For subtraction it shows the operands and the result; a borrow row is not produced.
Perform binary arithmetic operations (addition, subtraction, multiplication, division, AND, OR, XOR) and convert numbers between binary, octal, decimal, and hexadecimal bases simultaneously.
Quick Answer
Convert values across binary, octal, decimal, and hexadecimal bases at once, or perform binary arithmetic (addition, subtraction, multiplication, division, AND, OR, XOR), with a carry row shown for addition.
Calculator Mode
e.g. 1011
Decimal (Base 10)
11
Binary prefix: 0b1011
Step-by-Step Base Conversion
Examples
Binary Addition: 1011 + 1101
Result = 11000 (Decimal: 11 + 13 = 24)
Convert Decimal 255 to other bases
Binary: 11111111 · Octal: 377 · Hexadecimal: FF
Bitwise XOR: 1101 XOR 1011
Result = 0110 (Decimal: 13 ^ 11 = 6)
How it works
This calculator operates in two modes to support your computer science and mathematical work:
Binary Addition Rules
0 + 0 = 00 + 1 = 11 + 0 = 11 + 1 = 0(carry 1 to the next column)1 + 1 + 1 = 1(carry 1 to the next column)
Understanding Bases in Computing
Different bases are suited for different computational tasks:
- Binary (Base 2): The native language of digital computing circuits.
- Octal (Base 8): Sometimes used in Unix file permission configurations (e.g. chmod 755).
- Decimal (Base 10): The standard human counting system based on ten digits.
- Hexadecimal (Base 16): A highly compact way to read binary sequences, where 4 bits are mapped to a single hex character (0-9, A-F). Commonly used for memory addresses and HTML color codes.
Related numeric calculators
For other mathematical operations and number transformations, visit:
Related Calculators
More tools from Education



