Binary Calculator
Convert between number systems and perform binary arithmetic operations
Binary (Base 2)
Only 0 and 1
Decimal (Base 10)
0-9
Octal (Base 8)
0-7
Hexadecimal (Base 16)
0-9, A-F
Binary Arithmetic Calculator
=
Result
Number System Conversions (0-15)
Decimal | Binary | Octal | Hex |
---|
Powers of 2
2 n | Binary | Decimal |
---|
Binary & Number Systems Tips
🔢 Binary Basics
Binary uses only 0 and 1. Each position represents a power of 2: 1, 2, 4, 8, 16, 32, 64, 128...
📊 Quick Conversion
To convert decimal to binary, divide by 2 repeatedly and read remainders bottom-up.
🎯 Hex Shorthand
Hexadecimal is often used as shorthand for binary. Each hex digit = 4 binary digits.
⚡ Bitwise Operations
AND (&): both bits 1. OR (|): at least one bit 1. XOR (^): exactly one bit 1.
💻 Programming Use
Binary operations are fundamental in programming, especially for flags, masks, and bit manipulation.
🧮 Memory Units
Computer memory: 1 byte = 8 bits, 1 KB = 1024 bytes, 1 MB = 1024 KB, etc.