Enter the number
Type a decimal number in the box; the base is already selected.
Type a decimal number and get its binary value instantly, together with binary, decimal, hexadecimal and octal, the bit count and a copy button. Free, in your browser.
100% private — the calculation is done in your browser and nothing is sent to any server.
Type a decimal number in the box; the base is already selected.
Binary, decimal, hexadecimal, binary and octal appear together.
Use the copy button next to the value you need.
To convert decimal to binary, type your number in the converter above and read the binary value. For example, 214 in decimal is 1101 0110 in binary. The other bases are shown at the same time.
Turning decimal into binary is what you do when you set flags, write a bitmask, prepare a subnet or learn how computers store numbers. The number 214 becomes 11010110, which shows at a glance which bits are on and which are off.
Here is 214 (decimal) converted step by step:
| Decimal | Binary | Previous value |
|---|---|---|
| 1 | 1 | 0 |
| 2 | 10 | 1 |
| 4 | 100 | 11 |
| 8 | 1000 | 111 |
| 16 | 10000 | 1111 |
| 32 | 100000 | 11111 |
| 64 | 1000000 | 111111 |
| 128 | 10000000 | 1111111 |
| 256 | 100000000 | 11111111 |
| 512 | 1000000000 | 111111111 |
| 1024 | 10000000000 | 1111111111 |
| Decimal | Binary | Decimal |
|---|---|---|
| 10 | 1010 | 10 |
| 42 | 101010 | 42 |
| 100 | 1100100 | 100 |
| 255 | 11111111 | 255 |
| 300 | 100101100 | 300 |
| 1000 | 1111101000 | 1000 |
| 4095 | 111111111111 | 4095 |
| 65535 | 1111111111111111 | 65535 |
To check the result, convert it back: 1101 0110 in binary is 214 in decimal. Your input may only contain the decimal digits 0 1 2 3 4 5 6 7 8 9; any other character is not a valid decimal number.
More utilities that also run without leaving your browser.