Instantly convert between decimal, binary, hexadecimal, and octal numbers. Enter a whole number in any base and see all values update live. Free.
This binary converter instantly switches a whole number between decimal, binary, octal, and hexadecimal.
How to convert a number in 3 steps:
- Enter your number into any one of the four fields (decimal, binary, octal, or hex).
- The other three number systems update automatically.
- Copy the result you need with the copy button next to each field.
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
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.
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.
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.
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.
No, this tool converts whole numbers between decimal, binary, octal, and hexadecimal. For converting text or ASCII characters to binary code, you would need a dedicated text-to-binary translator instead.
Repeatedly divide the decimal number by 2 and record each remainder. Reading the remainders from last to first gives the binary value. For example, 6 divided by 2 gives remainder 0, then 1, then 1, so 6 in binary is 110.