Decimal to Binary

Write a non-negative base-ten integer in binary while keeping its exact value.

Write a non-negative base-ten integer in binary while keeping its exact value.

How to use

  1. Enter 1025 using decimal digits only.
  2. Convert to binary and read the digits from right to left to identify the set bits.
  3. Compare the set bits with the powers of two that sum to the input.

Worked example

Input

1025

Expected result

10000000001

Check the result

Only the positions for 1024 and 1 are set in the result.

Continue with another guide

Cookie
We care about your data and would love to use cookies to improve your experience.

Learn how we use cookies