Convert between decimal, binary, hexadecimal, and octal instantly. Enter a whole number in any base, see matching values, and copy results.
Use this binary converter to switch between decimal, binary, octal, and hexadecimal instantly. Enter a whole number in any base and the other number systems update at the same time.
This page is useful for decimal to binary, binary to decimal, binary to hex, hex to binary, and quick base conversion in programming, electronics, networking, and study.
Enter a value in any field; the other bases update automatically.
Related calculators
Example conversion
3 / 2 = 1, remainder 1
1 / 2 = 0, remainder 1, (MSB - Most Significant Bit)
Binary lookup table
| Decimal number (positive) | Binary number |
|---|---|
| 0 | 0 |
| 1 | 1 |
| 2 | 10 |
| 3 | 11 |
| 4 | 100 |
| 5 | 101 |
| 6 | 110 |
| 7 | 111 |
| 8 | 1000 |
| 9 | 1001 |
| 10 | 1010 |
| Decimal number (positive) | Binary number |
|---|---|
| 11 | 1011 |
| 12 | 1100 |
| 13 | 1101 |
| 14 | 1110 |
| 15 | 1111 |
| 16 | 10000 |
| 32 | 100000 |
| 64 | 1000000 |
| 128 | 10000000 |
| 256 | 100000000 |
Binary Converter FAQ
What does this binary converter do?
This tool converts between decimal, binary, octal, and hexadecimal in one place. Enter a whole number in any field and the matching values update instantly.
When would I use a decimal to binary or binary to decimal converter?
These conversions are common in programming, digital electronics, computer architecture, bit-level work, and school exercises. A quick binary converter is useful when you need to verify powers of two, bit patterns, or how a binary value maps back to decimal.
Does this page work for hexadecimal too?
Yes. You can enter a hexadecimal value to convert it to binary, decimal, and octal, or use the hexadecimal field as a quick output when starting from another base.
Does this page convert octal numbers?
Yes. The octal field works both as an input and an output, so you can convert octal to binary, binary to octal, or compare octal with decimal and hexadecimal.