Home » Developer Tools » Decimal to Binary Converter
Decimal to binary converter is used to convert decimal numbers into binary code. This tool is a simple answer of "convert decimal to binary".
Last updated 19 November 2026
Bit grid: click a bit to flip it
Decimal: 0
The numbers people look up most. For every value up to 255, see the full table below.
| Decimal | Binary | Decimal | Binary |
|---|---|---|---|
| 0 | 0 | 8 | 1000 |
| 1 | 1 | 9 | 1001 |
| 2 | 10 | 10 | 1010 |
| 3 | 11 | 11 | 1011 |
| 4 | 100 | 12 | 1100 |
| 5 | 101 | 13 | 1101 |
| 6 | 110 | 14 | 1110 |
| 7 | 111 | 15 | 1111 |
See the full 0 to 255 table in the Decimal to Binary Conversion Table below.
BotixTech's Decimal to Binary Converter is a powerful online tool designed to help you convert decimal numbers into binary code quickly and accurately. Whether you are a student, programmer, or tech enthusiast, this tool simplifies the process of converting numbers without requiring any software installation or complex programming knowledge.
With our online decimal to binary tool, you can easily convert decimal values into binary equivalents in just a few clicks. This converter is perfect for anyone who needs accurate binary representations for computing, coding, or educational purposes.
For users who want to convert binary back to decimal, simply enter a binary number and click “Convert to Number”. The converter will display the decimal equivalent immediately.
BotixTech provides a wide range of online tools designed to simplify digital tasks. Our Decimal to Binary Converter is part of our growing collection of online utilities, making it easier for users to perform conversions, compress files, and work with text and numbers efficiently.
The Decimal to Binary Converter on BotixTech.com is a must-have tool for anyone who frequently works with decimal and binary numbers. It provides fast, accurate, and easy conversions without the need for complicated software. Whether you’re learning binary numbers, coding, or performing calculations, this tool is an essential part of your digital toolkit.
Visit BotixTech.com today and experience the simplicity, speed, and reliability of our Decimal to Binary Converter along with a wide array of other useful online tools.
42 in binary is 101010. Divide by 2 and read the remainders last to first: 42 divided by 2 is 21 remainder 0, 21 divided by 2 is 10 remainder 1, 10 divided by 2 is 5 remainder 0, 5 divided by 2 is 2 remainder 1, 2 divided by 2 is 1 remainder 0, 1 divided by 2 is 0 remainder 1. Reading the remainders from the last row to the first gives 101010.
Check it by place value: 32 plus 8 plus 2 equals 42, and those are the positions with a 1 in 101010. The same method works for any whole number. For words instead of numbers, use the text to binary converter, and to decode a binary number back to decimal, use the binary to decimal converter.
Each binary position is worth twice the one to its right: 1, 2, 4, 8, 16, 32, 64, 128, 256. A 1 in a position adds that value, a 0 adds nothing. So 255 in binary is 11111111 because 128 plus 64 plus 32 plus 16 plus 8 plus 4 plus 2 plus 1 equals 255, and 1000 in binary is 1111101000 because 512 plus 256 plus 128 plus 64 plus 32 plus 8 equals 1000.
To convert a decimal number to binary by hand, you divide the number by 2 repeatedly and write down the remainders. Then you read the remainders from bottom to top. Here is the step-by-step conversion of 13 to binary:
Reading the remainders from bottom to top gives 1101, so 13 in decimal equals 1101 in binary. The converter above performs these same steps instantly - try entering 13 to see the result.
The division by 2 method is the standard way to convert a decimal number to binary by hand. Divide the number by 2, write down the remainder, then divide the quotient by 2 again. Keep going until the quotient reaches 0. The remainders, read from the last row to the first row, spell out the binary number. Every remainder is 0 or 1, which is exactly what a binary digit can be.
This method works for any whole number, and the tool above gives the same answer instantly. Work through one example by hand, then check your answer in the tool. If the two answers match, you know you have the method right.
Here are four more numbers worked out with the same division method. Each one shows the remainders that build the answer.
Try any of these in the tool above. Enter the decimal number and click Convert to Binary, or enter the binary number and click Convert to Number to go back the other way.
Each binary position is a power of 2. This table lists the first eleven powers, from 2 to the power 0 up to 2 to the power 10. A number that needs 9 bits, such as 256, is the first value that does not fit in one byte.
| Power | Value |
|---|---|
| 2 to the power 0 | 1 |
| 2 to the power 1 | 2 |
| 2 to the power 2 | 4 |
| 2 to the power 3 | 8 |
| 2 to the power 4 | 16 |
| 2 to the power 5 | 32 |
| 2 to the power 6 | 64 |
| 2 to the power 7 | 128 |
| 2 to the power 8 | 256 |
| 2 to the power 9 | 512 |
| 2 to the power 10 | 1024 |
The table below lists every whole number from 0 to 255 with its binary value and its hex value. Each row uses 8 bits at most, so the table covers every value one byte can hold. You can verify any row instantly with the converter above.
| Decimal | Binary | Hexadecimal |
|---|---|---|
| 0 | 0 | 0 |
| 1 | 1 | 1 |
| 2 | 10 | 2 |
| 3 | 11 | 3 |
| 4 | 100 | 4 |
| 5 | 101 | 5 |
| 6 | 110 | 6 |
| 7 | 111 | 7 |
| 8 | 1000 | 8 |
| 9 | 1001 | 9 |
| 10 | 1010 | A |
| 11 | 1011 | B |
| 12 | 1100 | C |
| 13 | 1101 | D |
| 14 | 1110 | E |
| 15 | 1111 | F |
| 16 | 10000 | 10 |
| 17 | 10001 | 11 |
| 18 | 10010 | 12 |
| 19 | 10011 | 13 |
| 20 | 10100 | 14 |
| 21 | 10101 | 15 |
| 22 | 10110 | 16 |
| 23 | 10111 | 17 |
| 24 | 11000 | 18 |
| 25 | 11001 | 19 |
| 26 | 11010 | 1A |
| 27 | 11011 | 1B |
| 28 | 11100 | 1C |
| 29 | 11101 | 1D |
| 30 | 11110 | 1E |
| 31 | 11111 | 1F |
| 32 | 100000 | 20 |
| 33 | 100001 | 21 |
| 34 | 100010 | 22 |
| 35 | 100011 | 23 |
| 36 | 100100 | 24 |
| 37 | 100101 | 25 |
| 38 | 100110 | 26 |
| 39 | 100111 | 27 |
| 40 | 101000 | 28 |
| 41 | 101001 | 29 |
| 42 | 101010 | 2A |
| 43 | 101011 | 2B |
| 44 | 101100 | 2C |
| 45 | 101101 | 2D |
| 46 | 101110 | 2E |
| 47 | 101111 | 2F |
| 48 | 110000 | 30 |
| 49 | 110001 | 31 |
| 50 | 110010 | 32 |
| 51 | 110011 | 33 |
| 52 | 110100 | 34 |
| 53 | 110101 | 35 |
| 54 | 110110 | 36 |
| 55 | 110111 | 37 |
| 56 | 111000 | 38 |
| 57 | 111001 | 39 |
| 58 | 111010 | 3A |
| 59 | 111011 | 3B |
| 60 | 111100 | 3C |
| 61 | 111101 | 3D |
| 62 | 111110 | 3E |
| 63 | 111111 | 3F |
| 64 | 1000000 | 40 |
| 65 | 1000001 | 41 |
| 66 | 1000010 | 42 |
| 67 | 1000011 | 43 |
| 68 | 1000100 | 44 |
| 69 | 1000101 | 45 |
| 70 | 1000110 | 46 |
| 71 | 1000111 | 47 |
| 72 | 1001000 | 48 |
| 73 | 1001001 | 49 |
| 74 | 1001010 | 4A |
| 75 | 1001011 | 4B |
| 76 | 1001100 | 4C |
| 77 | 1001101 | 4D |
| 78 | 1001110 | 4E |
| 79 | 1001111 | 4F |
| 80 | 1010000 | 50 |
| 81 | 1010001 | 51 |
| 82 | 1010010 | 52 |
| 83 | 1010011 | 53 |
| 84 | 1010100 | 54 |
| 85 | 1010101 | 55 |
| 86 | 1010110 | 56 |
| 87 | 1010111 | 57 |
| 88 | 1011000 | 58 |
| 89 | 1011001 | 59 |
| 90 | 1011010 | 5A |
| 91 | 1011011 | 5B |
| 92 | 1011100 | 5C |
| 93 | 1011101 | 5D |
| 94 | 1011110 | 5E |
| 95 | 1011111 | 5F |
| 96 | 1100000 | 60 |
| 97 | 1100001 | 61 |
| 98 | 1100010 | 62 |
| 99 | 1100011 | 63 |
| 100 | 1100100 | 64 |
| 101 | 1100101 | 65 |
| 102 | 1100110 | 66 |
| 103 | 1100111 | 67 |
| 104 | 1101000 | 68 |
| 105 | 1101001 | 69 |
| 106 | 1101010 | 6A |
| 107 | 1101011 | 6B |
| 108 | 1101100 | 6C |
| 109 | 1101101 | 6D |
| 110 | 1101110 | 6E |
| 111 | 1101111 | 6F |
| 112 | 1110000 | 70 |
| 113 | 1110001 | 71 |
| 114 | 1110010 | 72 |
| 115 | 1110011 | 73 |
| 116 | 1110100 | 74 |
| 117 | 1110101 | 75 |
| 118 | 1110110 | 76 |
| 119 | 1110111 | 77 |
| 120 | 1111000 | 78 |
| 121 | 1111001 | 79 |
| 122 | 1111010 | 7A |
| 123 | 1111011 | 7B |
| 124 | 1111100 | 7C |
| 125 | 1111101 | 7D |
| 126 | 1111110 | 7E |
| 127 | 1111111 | 7F |
| 128 | 10000000 | 80 |
| 129 | 10000001 | 81 |
| 130 | 10000010 | 82 |
| 131 | 10000011 | 83 |
| 132 | 10000100 | 84 |
| 133 | 10000101 | 85 |
| 134 | 10000110 | 86 |
| 135 | 10000111 | 87 |
| 136 | 10001000 | 88 |
| 137 | 10001001 | 89 |
| 138 | 10001010 | 8A |
| 139 | 10001011 | 8B |
| 140 | 10001100 | 8C |
| 141 | 10001101 | 8D |
| 142 | 10001110 | 8E |
| 143 | 10001111 | 8F |
| 144 | 10010000 | 90 |
| 145 | 10010001 | 91 |
| 146 | 10010010 | 92 |
| 147 | 10010011 | 93 |
| 148 | 10010100 | 94 |
| 149 | 10010101 | 95 |
| 150 | 10010110 | 96 |
| 151 | 10010111 | 97 |
| 152 | 10011000 | 98 |
| 153 | 10011001 | 99 |
| 154 | 10011010 | 9A |
| 155 | 10011011 | 9B |
| 156 | 10011100 | 9C |
| 157 | 10011101 | 9D |
| 158 | 10011110 | 9E |
| 159 | 10011111 | 9F |
| 160 | 10100000 | A0 |
| 161 | 10100001 | A1 |
| 162 | 10100010 | A2 |
| 163 | 10100011 | A3 |
| 164 | 10100100 | A4 |
| 165 | 10100101 | A5 |
| 166 | 10100110 | A6 |
| 167 | 10100111 | A7 |
| 168 | 10101000 | A8 |
| 169 | 10101001 | A9 |
| 170 | 10101010 | AA |
| 171 | 10101011 | AB |
| 172 | 10101100 | AC |
| 173 | 10101101 | AD |
| 174 | 10101110 | AE |
| 175 | 10101111 | AF |
| 176 | 10110000 | B0 |
| 177 | 10110001 | B1 |
| 178 | 10110010 | B2 |
| 179 | 10110011 | B3 |
| 180 | 10110100 | B4 |
| 181 | 10110101 | B5 |
| 182 | 10110110 | B6 |
| 183 | 10110111 | B7 |
| 184 | 10111000 | B8 |
| 185 | 10111001 | B9 |
| 186 | 10111010 | BA |
| 187 | 10111011 | BB |
| 188 | 10111100 | BC |
| 189 | 10111101 | BD |
| 190 | 10111110 | BE |
| 191 | 10111111 | BF |
| 192 | 11000000 | C0 |
| 193 | 11000001 | C1 |
| 194 | 11000010 | C2 |
| 195 | 11000011 | C3 |
| 196 | 11000100 | C4 |
| 197 | 11000101 | C5 |
| 198 | 11000110 | C6 |
| 199 | 11000111 | C7 |
| 200 | 11001000 | C8 |
| 201 | 11001001 | C9 |
| 202 | 11001010 | CA |
| 203 | 11001011 | CB |
| 204 | 11001100 | CC |
| 205 | 11001101 | CD |
| 206 | 11001110 | CE |
| 207 | 11001111 | CF |
| 208 | 11010000 | D0 |
| 209 | 11010001 | D1 |
| 210 | 11010010 | D2 |
| 211 | 11010011 | D3 |
| 212 | 11010100 | D4 |
| 213 | 11010101 | D5 |
| 214 | 11010110 | D6 |
| 215 | 11010111 | D7 |
| 216 | 11011000 | D8 |
| 217 | 11011001 | D9 |
| 218 | 11011010 | DA |
| 219 | 11011011 | DB |
| 220 | 11011100 | DC |
| 221 | 11011101 | DD |
| 222 | 11011110 | DE |
| 223 | 11011111 | DF |
| 224 | 11100000 | E0 |
| 225 | 11100001 | E1 |
| 226 | 11100010 | E2 |
| 227 | 11100011 | E3 |
| 228 | 11100100 | E4 |
| 229 | 11100101 | E5 |
| 230 | 11100110 | E6 |
| 231 | 11100111 | E7 |
| 232 | 11101000 | E8 |
| 233 | 11101001 | E9 |
| 234 | 11101010 | EA |
| 235 | 11101011 | EB |
| 236 | 11101100 | EC |
| 237 | 11101101 | ED |
| 238 | 11101110 | EE |
| 239 | 11101111 | EF |
| 240 | 11110000 | F0 |
| 241 | 11110001 | F1 |
| 242 | 11110010 | F2 |
| 243 | 11110011 | F3 |
| 244 | 11110100 | F4 |
| 245 | 11110101 | F5 |
| 246 | 11110110 | F6 |
| 247 | 11110111 | F7 |
| 248 | 11111000 | F8 |
| 249 | 11111001 | F9 |
| 250 | 11111010 | FA |
| 251 | 11111011 | FB |
| 252 | 11111100 | FC |
| 253 | 11111101 | FD |
| 254 | 11111110 | FE |
| 255 | 11111111 | FF |
Computers store fractions like 0.1 as IEEE 754 floating point numbers, not as the division by 2 digits above. A 64 bit double keeps a sign bit, an exponent and a mantissa, which is why 0.1 has no exact binary form and why 0.1 plus 0.2 gives 0.30000000000000004 in many programming languages. This converter works with whole numbers only, so it does not do IEEE 754 conversion. To convert a fraction by hand, convert the whole number part with the division by 2 method, then convert the fraction part by multiplying by 2 again and again and reading the whole number part of each result.
Type the decimal number into the input field and click “Convert to Binary”. The tool repeatedly divides the number by 2 and reads the remainders from bottom to top to produce the binary result instantly.
Yes. Enter a binary number (digits 0 and 1 only) and click “Convert to Number” to get the decimal equivalent immediately.
Yes. The converter handles large decimal numbers efficiently and returns accurate binary results for advanced computing and educational use.
Yes. It is completely free to use online with no signup, no installation, and no limits.
No. This tool works with whole numbers only. If you type a number with a decimal point, the tool reads only the whole number part and drops the rest, so 10.9 converts as 10 and gives 1010. To convert a fraction by hand, convert the whole number part and the fraction part separately: multiply the fraction by 2 again and again and read the whole number part of each result.
Not as two's complement. If you type a negative number, the tool puts a minus sign in front of the binary digits, so -5 gives -101. That is a sign and magnitude reading, not the two's complement form that computers store. For two's complement, work out the positive value first, then flip every bit and add 1 within the bit width you need.
The tool handles very large whole numbers, but results stay exact only up to 9,007,199,254,740,991, which is 2 to the power 53 minus 1. Above that value, browsers store numbers as 64 bit floating point values, so the last digits can lose precision and the binary result may be rounded. For everyday numbers up to that limit, the result is exact.
Related tool: Text to Binary Converter - convert words and text directly into binary code.
If you need to convert whole words and sentences instead of a single number, use the binary to text and text to binary converter.