Skip to content

Decimal To Binary Converter

Convert a whole number to binary. 10 is 1010. 0 is 0. The page does not use a fraction.

Result

Enter a whole number

How to Use

  1. 1 Enter a whole number.
  2. 2 Read the binary digits.
  3. 3 10 is 1010.

Example Output

  • 10 is 1010.

About This Tool

The range is 0 through 2147483647. The binary result has no leading zeros except for 0 itself.

Using the Decimal to Binary Converter

The Decimal to Binary Converter turns one whole number into binary digits. The field starts at 10. Choose Convert to binary. The label above the headline reads Binary. The headline is 1010. The sentence under it says 10 in binary is 1010. The binary line is 1010, matching the headline. 0 is 0. The binary result has no leading zeros except for 0 itself, so 10 is 1010 and not a longer string of zeros with 1010 at the end.

The range is 0 through 2147483647. The page reads the field as a whole number in that range and converts it to base 2. A fraction, a minus sign, a comma, a word, a blank field, and a number above 2147483647 are rejected with Number must be a whole number from 0 to 2147483647. The rejection replaces the headline and clears the sentence and the binary line. The page does not use a fraction, and it does not round a decimal to a nearby whole number. Type the whole number you want and convert again.

A leading zero does not change the value. 010 is read as 10, and 10 in binary is 1010. The page does not treat a leading zero as a signal for another base. 1 is 1. 2 is 10. 8 is 1000. 255 is 11111111. Each of those results is the headline, the binary line, and the number named in the sentence. Convert 10 again after any of those trials and the headline returns to 1010.

Copy result copies the sentence. For the sample, that copy is 10 in binary is 1010. Reset returns the field to 10 and the headline to Enter a whole number. The sentence and the binary line are cleared. Copy before you reset if you still need the binary digits. The same whole number always produces the same binary. Convert 10 twice and the headline stays 1010. Convert 0 and the headline is 0, and the sentence says 0 in binary is 0.

A few nearby whole numbers make the digits easier to trust before you copy 1010. 3 is 11. 4 is 100. 5 is 101. 6 is 110. 7 is 111. 9 is 1001. 15 is 1111. 16 is 10000. 32 is 100000. Each of those headlines matches the binary line, and each sentence names the whole number you typed. None of them adds a leading zero. A power of two is a 1 followed by zeros. 10 is 1010 because the digits mark eight and two, not a single power. After those checks, put 10 back and convert. The headline is 1010. Put 0 in the field and convert. The headline is 0. The page converts one number at a time, so a list of numbers is a list of separate runs.

What the Binary Digits Represent

The headline is the binary form of the whole number you typed. For 10 the headline is 1010. The binary line repeats 1010. The sentence names both sides: 10 in binary is 1010. The label above a successful headline reads Binary. There is no second headline that says only that the conversion finished. If you need the original number, it is still in the field until you edit it or reset.

How 10 Becomes 1010

The page checks that the field is a whole number from 0 through 2147483647. It then converts that number to base 2 and shows the digits. 10 becomes 1010. 0 becomes 0. The sentence places the original number and the binary digits in one line, so a note that copies the sentence keeps both. The binary line is the same digit string as the headline. For 10, both are 1010. For 0, both are 0.

The opposite direction starts from binary digits. The Binary to Decimal Converter converts a binary number to decimal. 1010 is 10. Each digit doubles the place of the digit on its right. That page does not convert other bases. Use it when you already have 1010 and want 10. Use this page when you have 10 and want 1010, or when you have 0 and want 0.

What This Conversion Leaves Out

The page converts one whole number and stops. It does not convert a fraction, and it does not show a binary point. 10.5 is rejected rather than turned into a nearby whole number. It does not group the digits with spaces, and it does not add a prefix in front of 1010. The headline for 10 is 1010. The sentence says 10 in binary is 1010. A prefix or a space would be a different string from the one this page copies.

10, 0, and a Few Other Whole Numbers

Leave the field at 10 and choose Convert to binary. The headline is 1010. The sentence says 10 in binary is 1010. Change the field to 0 and convert. The headline is 0, and the sentence says 0 in binary is 0. Change the field to 2 and convert. The headline is 10. Change the field to 8 and convert. The headline is 1000. Change the field to 255 and convert. The headline is 11111111. Return the field to 10 and convert. The headline is 1010 again.

Other bases need a page that asks for both bases. The Number Base Converter converts a whole number from one base to another. Bases run from 2 to 36. Digits above 9 use the letters A through Z. 255 in base 10 is FF in base 16. 1010 in base 2 is 10 in base 10. Use that page when the source base is not 10 or the destination is not 2. Use this page when 10 should become 1010 and 0 should become 0.

Whole Numbers From 0 Through 2147483647

The field must be a whole number from 0 through 2147483647. Number must be a whole number from 0 to 2147483647 is the message for a blank field, for 10.5, for a minus sign, for a comma, for a word, and for 2147483648. The page uses that one message for every rejected field. It does not return a partial binary string. The sentence and the binary line are cleared, and the headline is the message.

Digits People Expect in the Wrong Base

A common miss is to expect leading zeros. 10 is 1010, not 00001010. 0 is the exception, and 0 is 0. Another miss is to read the headline 1010 as the original number. The field still holds 10. The headline holds the binary digits. The sentence says 10 in binary is 1010, which keeps the two roles apart. Another miss is to type 10.5 and expect a binary fraction. The page rejects it. Another miss is to treat 010 as a different base. 010 is 10, and the headline is 1010.

Hexadecimal bytes that spell a word are a different conversion. The Hex to Text Converter turns hexadecimal bytes into text. 48656c6c6f is Hello. Spaces between bytes are ignored. The bytes are read as UTF-8. That page does not turn 10 into 1010. Use it when the digits are hex bytes and the result should be text. Use this page when the field is a whole number from 0 through 2147483647 and the result should be binary digits.

A Short List You Can Check by Hand

Convert 0 and confirm the headline is 0. Convert 1 and confirm the headline is 1. Convert 2 and confirm the headline is 10. Convert 10 and confirm the headline is 1010 and the sentence says 10 in binary is 1010. Convert 8 and confirm the headline is 1000. Convert 255 and confirm the headline is 11111111. Each headline should match the binary line. Return to 10 before you leave the sample.

Keeping the Number Beside the Binary

Copy result copies the sentence, which names the whole number and the binary digits. For the sample, the sentence is 10 in binary is 1010. For 0, the sentence is 0 in binary is 0. A note that says only 1010 can be confused with a decimal number later. The sentence prevents that. Copy it before you reset. Reset returns the field to 10 and the headline to Enter a whole number, and it clears the sentence.

Roman numerals are another way to write a whole number, with a different range and different symbols. The Roman Numeral Converter converts a whole number from 1 to 3999 into Roman numerals, or a Roman numeral into a number. 2024 becomes MMXXIV. IV becomes 4. Use that page when the symbols should be Roman. Use this page when 10 should be 1010 and 0 should be 0.

One Whole Number, Written in Base 2

Every successful run converts the whole number in the field and shows the binary digits as the headline. 10 is 1010. 0 is 0. The sentence repeats both values. The range is 0 through 2147483647. The digits have no leading zeros except for the single 0 that represents 0. The field stays as you typed it, so you can change the number and convert again.

Checks Before You Copy the Binary

Read the field, the headline, and the sentence together. The sentence should name the field and the headline. For the sample, the field is 10, the headline is 1010, and the sentence says 10 in binary is 1010. For 0, the headline is 0 and the sentence says 0 in binary is 0. The binary line should match the headline. An error headline means the range check failed. The message is Number must be a whole number from 0 to 2147483647. Replace the field and convert again.

A count of minutes is a different split of a whole number. The Minutes to Hours Converter splits whole minutes into hours and leftover minutes, and shows the decimal hours. 90 minutes is 1 hour, 30 minutes, and 1.5 decimal hours. Use that page when the number is minutes and you want hours. Use this page when the number is a whole number from 0 through 2147483647 and you want binary digits. 10 on this page is 1010.

Frequently Asked Questions

What does 10 become?

1010. The headline is 1010, the binary line is 1010, and the sentence says 10 in binary is 1010. Convert 10 again and the headline stays 1010. The field remains 10 until you edit it or reset.

What does 0 become?

0. The headline is 0, and the sentence says 0 in binary is 0. 0 is the binary result that is a single 0. Larger whole numbers are shown without leading zeros. 1 is 1, 2 is 10, and 10 is 1010.

Which numbers are accepted?

Whole numbers from 0 through 2147483647. A blank field, a fraction, a minus sign, a comma, a word, and 2147483648 are rejected with Number must be a whole number from 0 to 2147483647. The page does not convert a fraction.

Does 010 stay different from 10?

No. 010 is read as 10, and 10 in binary is 1010. A leading zero does not select another base, and it is not kept in the binary digits. The headline for 010 is 1010, the same headline as for 10.

Are leading zeros added to the binary?

No. The binary result has no leading zeros except for 0 itself. 10 is 1010. 8 is 1000. 255 is 11111111. 0 is 0. The headline, the binary line, and the sentence all use that digit string.

What does Copy result copy?

Copy result copies the sentence. For the sample, the sentence is 10 in binary is 1010. For 0, the sentence is 0 in binary is 0. Copy that sentence before you reset. An error headline is not a binary result.

What does reset restore?

The field returns to 10. The headline returns to Enter a whole number. The sentence and the binary line are cleared. Reset does not convert 10 by itself. Choose Convert to binary again when you want the headline 1010.