Decimal to Binary Converter
Last Updated :
05 Apr, 2025
The Decimal to Binary Converter is a free, online tool designed to quickly and accurately convert decimal numbers (base 10) to binary numbers (base 2). This tool is especially useful for computer science students, programmers, and anyone who frequently deals with number system conversions.
Also, Check other Converters
Decimal to Binary Conversion
Before learning how to convert decimal to binary in a number system, let's first understand what a decimal number system is and what is a binary number system.
Decimal Number System
The number system that has a base value of 10 is called Decimal Number System. Decimal Numbers are consist of the following digits: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9.
Binary Number System
A binary Number System is a base-2 number system that uses two states 0 and 1 to represent a number. For example: 01, 111, etc.
All the decimal numbers have their corresponding binary numbers. These binary numbers are used in computer applications and for programming or coding purposes. This is because binary digits, 0 and 1 are only understood by computers.
How to Convert Decimal to Binary
To convert decimal numbers into binary, there are several methods, including formulas and division techniques. In this explanation, we'll use the remainder method. The steps to convert a decimal number to binary using this method are as follows:
Step 1: Divide the given decimal number by 2, and find the remainder (Ri).
Step 2: Now divide the quotient (Qi) that is obtained in the above step by 2, and find the remainder.
Step 3: Repeat the above steps 1 and 2 until 0 is obtained as a quotient.
Step 4: Write down the remainder in the following manner: the last remainder is written first, followed by the rest in reverse order (Rn, R(n - 1) .... R1). Thus binary conversion of the given decimal number will be obtained.
Let's understand the above steps with the help of an example.
Example: Convert 17 to Binary Form.
Solution:
Following the above steps we will divide 17 by 2 successively. The division process is shown the image added below:

Hence the Binary Equivalent of 17 is 10001.
Decimal to Binary Conversion Table
The common numbers in the Decimal number system and their corresponding binary number, along with the hexadecimal form, are as follows:
Decimal Number | Binary Number | Hexadecimal Number |
---|
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 | A |
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 |
64 | 1000000 | 40 |
128 | 10000000 | 80 |
256 | 100000000 | 100 |
Decimal to Binary Solved Examples
Some examples of converting decimal numbers to binary are:
Decimal 10 to Binary
Divide 10 by 2:
Quotient = 5, Remainder = 0.
- Divide 5 by 2:
Quotient = 2, Remainder = 1. - Divide 2 by 2:
Quotient = 1, Remainder = 0. - Divide 1 by 2:
Quotient = 0, Remainder = 1.
Now, write the remainders in reverse order:
Binary of 10 = 1010.
Decimal 25 to Binary
Divide 25 by 2:
Quotient = 12, Remainder = 1.
- Divide 12 by 2:
Quotient = 6, Remainder = 0. - Divide 6 by 2:
Quotient = 3, Remainder = 0. - Divide 3 by 2:
Quotient = 1, Remainder = 1. - Divide 1 by 2:
Quotient = 0, Remainder = 1.
Reading the remainders in reverse order: 11001.
Therefore, the binary equivalent of decimal 25 is 11001.
Decimal 47 to Binary
Divide 47 by 2:
Quotient = 23, Remainder = 1.
- Divide 23 by 2:
Quotient = 11, Remainder = 1. - Divide 11 by 2:
Quotient = 5, Remainder = 1. - Divide 5 by 2:
Quotient = 2, Remainder = 1. - Divide 2 by 2:
Quotient = 1, Remainder = 0. - Divide 1 by 2:
Quotient = 0, Remainder = 1.
Reading the remainders in reverse order: 101111.
Therefore, the binary equivalent of decimal 47 is 101111.
Conclusion
In Conclusion, Decimal to Binary Calculator is a free online tool prepared by GeekforGeeks that converts the given value of the decimal number into the value of the binary number (0,1). It is a fast and easy-to-use tool that helps students solve various problems.
Solved Questions on Decimal to Binary Conversion
Question (278)10 in Binary?
Solution:
We have 278 in Decimal. To Convert in Binary we will divide 278 successively by 2.

Hence, (278) in decimal is equivalent to (100010110) in binary.
Question (25)10 in Binary
Solution:
We have 25 in decimal. To convert 25 in binary we will divide 25 by 2 successively

Hence, the Binary Equivalent of 25 is 11001
Question (75)10 to binary?
Solution:
We have 75 in decimal. To convert 75 in binary we will divide 25 by 2 successively

Hence, the Binary Equivalent of 75 is 1001011
Practice Problems on Decimal to Binary Conversion
Question 1: Convert 248 in Binary.
Question 2: Convert 575 in Binary.
Question 3: What is the decimal equivalent of 49?
Question 4: Convert (56)10 to (....)2.
Question 5: What is the Binary Form of 95?
Similar Reads
Maths Calculators
GeeksforGeeks's free online math calculator is a one-stop solution for all your complex and tough mathematical problems. It is a math solver tool that will save you a lot of time while doing complex calculations. GeeksforGeeks Calculator is a key to solving challenging math equations and tasks, maki
3 min read
CM to Inches Converter
Centimeter-to-inch conversion is a simple yet essential calculation used in various fields, including construction, design, and everyday measurements. Here is a handy conversion tool for converting centimeters (cm) to inches, helping you make accurate measurements effortlessly: Centimeters to Inches
4 min read
Inches to Centimeters Converter - Inches to Cm
Inches to cm converter is a free online tool that calculates value in centimeters after taking Inches value in Input. GeeksforGeeks Inches to cm converter is the fastest online tool to convert Inches to Centimeters. Use the tool below to save your time on calculations and get accurate and fast resul
4 min read
Feet to Centimeters Converter (feet to cm Converter)
Feet to Centimeter Calculator Converter is a free online tool that is used to convert the measurement in feet to centimeters and vice versa. The ft to cm converter calculator prepared at geeksforgeeks given below easily calculates the length in feet to length in centimeters. Table of Content Feet to
6 min read
cm to mm Converter
Centimeter(cm) to Millimeter(mm) Converter is a free online tool to convert cm to mm. Converting between cm to mm is a common task in everyday life. So, GeeksforGeeks provides a user-friendly and efficient cm to mm Conversion tool to simplify this process and assure accuracy. It is an easy-to-use ge
5 min read
Millimeter to Inches (mm to inch) Converter
Millimeter to Inches (mm to inch) Converter is a free online tool to convert mm to inch. Converting between mm to inch is a common task in everyday life. So, GeeksforGeeks provides a user-friendly and efficient mm-to-inch calculator tool to simplify this process and assure accuracy. It is an easy-to
5 min read
Millimeter to Centimeter Converter
Millimeter to centimeter calculator is a free online tool to convert Millimeter to Centimeter. This geeksforgeeks online Millimeter to centimeter converter makes the calculation faster and it displays the conversion in a fraction of seconds. It is an easy-to-use general purpose calculator that makes
4 min read
MM to Feet Converter (Millimeter to Feet)
1 Feet is equal to 0.0033 feet. To make the conversion of MM to Feet easy, below is the MM to Feet online converter tool. It is a fast, easy-to-use general-purpose calculator that can be used in any field, such as engineering, etc. Furthermore, It also helps students and working professionals to sol
5 min read
Meters to Feet (m to ft) Converter
Meter to Feet Calculator is a free tool prepared by GeekforGeeks that converts the given value of the meter(m) into the value of feet(ft). It is a fast and easy-to-use tool that helps students solve various problems. Table of Content Definition of Meter and FootSteps to Use the Meter to Feet Calcula
5 min read
Metric Tons to Kilograms Converter
The Metric Tons to Kilograms Converter is a free online tool to convert Metric Tons to Kilograms. Converting between Metric Tons to kilograms is a common task in everyday life. So, GeeksforGeeks provides a user-friendly and efficient online Metric Tons to kg Conversion tool to simplify this process
6 min read