🌐 EN

πŸ’» Binary Calculator

A calculator for converting between binary and decimal numbers and performing binary arithmetic operations. Useful for programming, computer science learning, and digital logic circuit design.

Decimal Input β†’ Binary

Binary
β€”

Binary Input β†’ Decimal

Decimal
β€”

Binary Operations

Result
β€”
Decimal β€”
GUIDE

Learn more

01

What is Binary?

Binary is a number system that uses only two digits: 0 and 1. Computers process all data in binary, representing the ON/OFF states of digital circuits. For example, decimal 5 is 101 in binary, and decimal 10 is 1010 in binary.

02

How to Convert Binary to Decimal

To convert binary to decimal, multiply each digit by powers of 2 and sum them. For example, binary 1011 is (1Γ—2Β³)+(0Γ—2Β²)+(1Γ—2ΒΉ)+(1Γ—2⁰) = 8+0+2+1 = 11 (decimal). This calculator performs these conversions instantly.

03

How to Convert Decimal to Binary

To convert decimal to binary, repeatedly divide the decimal number by 2 and read the remainders in reverse order. For example, converting decimal 13: 13Γ·2=6 remainder 1, 6Γ·2=3 remainder 0, 3Γ·2=1 remainder 1, 1Γ·2=0 remainder 1, reading in reverse gives 1101 (binary).

04

Binary Addition and Subtraction

Binary addition follows the rules: 0+0=0, 0+1=1, 1+0=1, 1+1=10 (carry occurs). For example, 101 + 11 = 1000. Subtraction borrows 2 from higher places when needed. This calculator automatically handles carries and borrows.

05

Binary Multiplication and Division

Binary multiplication is similar to decimal but simpler. The only rules are: 0Γ—0=0, 0Γ—1=0, 1Γ—0=0, 1Γ—1=1. Division works the same as decimal division but calculated in binary. In programming, bit shift operations enable fast multiplication/division.

06

Real-World Applications of Binary

Binary is widely used in computer programming, network subnet mask calculations, file permission settings (chmod), digital image processing, encryption, and more. Many computer-related tasks like IP addresses, MAC addresses, bit flags, and color codes are based on binary.