Type a tool name, for example "keyword density" or "transcript".
Perform arithmetic and bitwise operations on binary, decimal, and hexadecimal numbers with instant multi-base results.
A binary calculator adds, subtracts, multiplies, divides and runs bitwise operations on binary numbers, then shows the answer in binary, octal, decimal and hex. This free tool is for students, programmers and anyone checking base-2 math. Enter two numbers, pick an operation, and read every base at once.
Binary arithmetic is math done in base 2, where every number is written with only the digits 0 and 1. Each position is worth a power of two, starting at 1 on the right and doubling as you move left: 1, 2, 4, 8, 16 and so on.
To read a binary number, add up the place values that hold a 1. For example, 1101 is 8 + 4 + 0 + 1, which equals 13 in decimal. Computers store everything this way because a circuit only needs to tell two states apart, on and off.
Binary addition has four cases: 0 + 0 = 0, 0 + 1 = 1, 1 + 0 = 1, and 1 + 1 = 10 (write 0, carry 1). Subtraction, multiplication and division follow the same logic as decimal math, just with two digits instead of ten.
Bitwise operations compare two numbers one bit at a time instead of treating them as quantities. AND keeps a bit only when both numbers have a 1 in that position. OR keeps it when either does. XOR keeps it when exactly one does. NOT flips every bit, and shifts slide all bits left or right.
You can finish a calculation in about ten seconds by following these steps.
NOT works on a single number, so the Second Number field disappears when you select it.
The base menu changes as you type. A value made only of 0s and 1s switches to Binary, a value containing digits 2 to 9 switches to Decimal, and any letter from a to f switches to Hexadecimal. If you meant decimal 101 and the menu jumped to Binary, change it back before you click Calculate.
Here is a realistic run that shows how the same inputs behave under different operations.
Enter 1101 as the first number (Binary) and 1011 as the second (Binary), then choose Add. In decimal that is 13 + 11. The tool returns 11000 in BIN, 24 in DEC, 30 in OCT and 18 in HEX. Check it by hand: 8 + 4 + 1 = 13, 8 + 2 + 1 = 11, and 16 + 8 = 24, so 11000 is correct. The Bit Length detail tells you the answer needs 5 bits.
Now switch the same style of input to bitwise operations:
| Operation | Inputs | Result |
|---|---|---|
| Add | 1101 and 1011 | 11000 (24) |
| AND | 1100 and 1010 | 1000 (8) |
| XOR | 1100 and 1010 | 110 (6) |
| Left Shift | 101 by 2 | 10100 (20) |
The AND row shows the logic clearly. Only the leftmost bit is 1 in both 1100 and 1010, so only that bit survives. The shift row shows a handy rule: shifting left by 2 multiplies by 4, so 5 becomes 20.
To convert a binary number to decimal or hexadecimal, enter it as the first number, choose Add, enter 0 as the second number, and read the DEC or HEX line. Adding zero leaves the value unchanged, so the Results panel works as a quick base converter.
For example, 10110111 in Binary plus 0 returns 183 in DEC and B7 in HEX. The reverse also works: enter a decimal such as 183 with the first base set to Decimal, add 0, and copy the BIN line. If you need to turn binary into readable text instead of numbers, use the binary to text translator.
The Results panel gives you the expression you entered and the answer in four bases, so you can pick the one your task needs. The Details block adds the Bit Length, the operation name, and the base used for each input.
A binary calculator helps anyone who needs to check base-2 work quickly without converting everything to decimal by hand.
If you are working with plain averages rather than base-2 values, the average calculator is a better fit.
Most wrong answers come from a wrong base, not a wrong operation, so check the base menus first.
The calculator handles whole-number math across Binary, Decimal and Hexadecimal inputs and prints results in four bases. It follows standard rules for each operation, but you should know its scope.
Treat the tool as a reliable check for your own work, and still read the Bit Length before you reuse a value in code.
You now have everything you need to run binary math, bitwise masks and base conversions in one place. Enter your first number above, choose an operation and click Calculate. For more utilities like this, browse the online calculators and utilities collection.
Your report has been submitted. We will look into this issue.
A VPN changes your network exit. It does not guarantee anonymity.
Themes, plugins, code, video, audio, graphics & more from 90,000+ authors.
Web Development
Design & Media
Unlimited Access
Explore Envato Market