This converter converts decimal numbers to binary representation. Enter a number and the result appears instantly.

Binary (base-2) is the fundamental number system of computers. Every piece of data — text, images, programs — is stored as sequences of 0s and 1s. Understanding binary is essential for programming, networking, and computer science.
Each binary digit (bit) represents a power of 2: ...128, 64, 32, 16, 8, 4, 2, 1. For example: decimal 42 = binary 101010 (32+8+2).
Common uses: IP addresses, subnet masks, bitwise operations, permissions (chmod), and understanding how computers store numbers.
All calculations run locally in your browser — nothing is sent to any server.
Repeatedly divide by 2 and record remainders. Read remainders bottom-to-top. Example: 42 ÷ 2 = 21 R0, 21 ÷ 2 = 10 R1, 10 ÷ 2 = 5 R0, 5 ÷ 2 = 2 R1, 2 ÷ 2 = 1 R0, 1 ÷ 2 = 0 R1 → 101010.
To convert binary to decimal: multiply each bit by its position value. 101010 = 1×32 + 0×16 + 1×8 + 0×4 + 1×2 + 0×1 = 42.
8 bits = 1 byte = values 0–255. 16 bits = values 0–65,535. 32 bits = values 0–4,294,967,295.
| Feature | Decimal (base-10) | Binary (base-2) |
|---|---|---|
| Digits | 0–9 | 0–1 |
| Used by | Humans | Computers |
| Example: 42 | 42 | 101010 |
| Example: 255 | 255 | 11111111 |
| Readability | Easy for humans | Long but computer-native |

Have an idea, found a bug, or want to suggest a feature? Drop us a message – we respond within 24 hours.