Enter a number and select the base to convert from and to. This tool will help you convert between binary, decimal, octal, and hexadecimal formats.
When it comes to understanding how computers work, numbers play a big role. But while humans are used to working with the decimal system (base-10), computers think in binary (base-2). That means converting from decimal to binary is an essential skill for students, developers, and anyone exploring computer science.
At the very top of this page, youâll find the tool itself. Just type in your number in the âDecimal Inputâ box, hit the âConvertâ button, and instantly get your Binary Output. Itâs that easy.
Whether youâre solving homework, coding a project, or simply curious about number systems, this tool saves time and helps you learn along the way.
Manually converting decimals to binary can be slow and confusing, especially when the numbers get larger. Our tool does the hard work for you in seconds. But it doesnât just stop at giving you the answer, it also gives you the option to see the step-by-step breakdown, so you can understand the process and actually learn how decimal to binary conversion works.
Converting decimal numbers into binary may sound complicated at first, but once you understand the process, it becomes very easy. There are two main methods to do this: the Division Method and the Subtraction Method. Letâs go through both with clear examples so you can learn step by step.
The most popular method for converting decimals to binary is this one. The idea is simple:
Here is an popular example
Now, pick the remainders from bottom to top: 11100000.
So, 224 in decimal = 11100000 in binary.
There has another way to convert decimals into binary: by using the powers of 2. The idea is to find the largest power of 2 that fits into your decimal number, subtract it, and continue with the remainder until you reach 0.
The powers of 2 go like this:
1, 2, 4, 8, 16, 32, 64, 128, 256âŚ
Step 1: The largest power of 2 less than or equal to 192 is 128.
Step 2: The next largest power of 2 that fits into 64 is 64.
Now mark which powers of 2 were used: 128 and 64.
Write it in binary by placing 1 for used powers and 0 for unused ones:
So, 192 in decimal = 11000000 in binary.
With our tool, you donât have to choose between methods. Enter a decimal number, press convert, and click âShow Me the Stepsâ. Youâll see both methods explained in detail for your exact number. This way, you donât just get the answer, you actually learn the process.
Itâs important to understand the actual number systems. Humans and computers use different systems to represent numbers, and knowing the difference helps you see why conversions like decimal to binary or binary to decimal converter are so useful.
Decimal is the system we use every day. It uses ten digits: 0 to 9. That's why it's called base-10. Each digitâs position has a value that is a power of 10. For example:
345 in decimal means:
Itâs very easy for humans, making base-10 a natural choice, because we have ten fingers.
On the other hand, computers use binary, or base-2. Binary numbers use two digits only: 0 and 1. Each digit (bit) represents a power of 2 instead of 10. For example:
1011 in binary means:
Decimal and binary arenât the only systems youâll encounter. In Because hexadecimal (base-16) is a concise way to represent binary, it is also employed in computing systems. Letâs look at some common conversions.
Sometimes, youâll need to switch back from binary to decimal. The process is the reverse of what weâve seen: multiply each bit by its corresponding power of 2 and add them together.
Example: Binary 1101 = (1 Ă 8) + (1 Ă 4) + (0 Ă 2) + (1 Ă 1) = 13 in decimal.
Hexadecimal (often shortened to hex) uses 16 digits: 0â9 and AâF, where A = 10, B = 11, ⌠F = 15. Itâs a shorthand for binary because each hex digit equals exactly 4 binary bits.
Decimal Number
Binary Equivalent
0
0
1
1
2
10
3
11
4
100
5
101
6
110
7
111
8
1000
9
1001
10
1010
11
1011
12
1100
13
1101
14
1110
15
1111
16
10000
17
10001
18
10010
19
10011
20
10100
21
10101
22
10110
23
10111
24
11000
25
11001
26
11010
27
11011
28
11100
29
11101
30
11110
31
11111
32
100000
33
100001
34
100010
35
100011
36
100100
37
100101
38
100110
39
100111
40
101000
41
101001
42
101010
43
101011
44
101100
45
101101
46
101110
47
101111
48
110000
49
110001
50
110010
To convert a decimal number into binary, you can use the division by 2 method:
Example: Convert 13 to binary.
Reading from bottom to top: 1101. So, 13 in decimal = 1101 in binary.
Using the division method:
Reading bottom to top = 11100000. So, 224 in decimal = 11100000 in binary.
When decimals have fractions, you handle the whole number and the fractional part separately.
So fractional part = 01.
Final Answer: 12.25 in decimal = 1100.01 in binary.
Using the powers of 2 subtraction method:
Now mark the used powers (128 + 64). In binary: 11000000. So, 192 in decimal = 11000000 in binary.