← All tools
Binary Converter
Type in any field and the others update as you type. Whole numbers of any size.
How to convert binary to decimal
Each binary digit is worth a power of 2, starting from 1 on the right: 1, 2, 4, 8, 16, 32. Add up the values where the digit is 1. For 101010 that is 32 + 8 + 2 = 42.
How to convert decimal to binary
Divide by 2 again and again, writing down each remainder, until you reach 0. Then read the remainders from last to first. For 42 the remainders are 0, 1, 0, 1, 0, 1, which read backwards gives 101010.
Binary, hex and octal chart
| Decimal | Binary | Hex | Octal |
|---|---|---|---|
| 0 | 0000 | 0 | 0 |
| 1 | 0001 | 1 | 1 |
| 2 | 0010 | 2 | 2 |
| 3 | 0011 | 3 | 3 |
| 4 | 0100 | 4 | 4 |
| 5 | 0101 | 5 | 5 |
| 6 | 0110 | 6 | 6 |
| 7 | 0111 | 7 | 7 |
| 8 | 1000 | 8 | 10 |
| 9 | 1001 | 9 | 11 |
| 10 | 1010 | A | 12 |
| 11 | 1011 | B | 13 |
| 12 | 1100 | C | 14 |
| 13 | 1101 | D | 15 |
| 14 | 1110 | E | 16 |
| 15 | 1111 | F | 17 |
FAQ
Can it convert text to binary?
This page converts numbers. To turn text into character codes, use the ASCII converter.
How large a number can it handle?
Up to 4,096 digits in any base. Large values stay exact, with no rounding.
Does it handle negative numbers or fractions?
No. It converts whole numbers from 0 upward.
Is anything sent to a server?
No. The conversion runs in your browser.