Convert 125 126 255 255 to Unsigned Binary (Base 2)

See below how to convert 125 126 255 255(10), the unsigned base 10 decimal system number to base 2 binary equivalent

What are the required steps to convert base 10 decimal system
number 125 126 255 255 to base 2 unsigned binary equivalent?

  • A number written in base ten, or a decimal system number, is a number written using the digits 0 through 9. A number written in base two, or a binary system number, is a number written using only the digits 0 and 1.

1. Divide the number repeatedly by 2:

Keep track of each remainder.

Stop when you get a quotient that is equal to zero.


  • division = quotient + remainder;
  • 125 126 255 255 ÷ 2 = 62 563 127 627 + 1;
  • 62 563 127 627 ÷ 2 = 31 281 563 813 + 1;
  • 31 281 563 813 ÷ 2 = 15 640 781 906 + 1;
  • 15 640 781 906 ÷ 2 = 7 820 390 953 + 0;
  • 7 820 390 953 ÷ 2 = 3 910 195 476 + 1;
  • 3 910 195 476 ÷ 2 = 1 955 097 738 + 0;
  • 1 955 097 738 ÷ 2 = 977 548 869 + 0;
  • 977 548 869 ÷ 2 = 488 774 434 + 1;
  • 488 774 434 ÷ 2 = 244 387 217 + 0;
  • 244 387 217 ÷ 2 = 122 193 608 + 1;
  • 122 193 608 ÷ 2 = 61 096 804 + 0;
  • 61 096 804 ÷ 2 = 30 548 402 + 0;
  • 30 548 402 ÷ 2 = 15 274 201 + 0;
  • 15 274 201 ÷ 2 = 7 637 100 + 1;
  • 7 637 100 ÷ 2 = 3 818 550 + 0;
  • 3 818 550 ÷ 2 = 1 909 275 + 0;
  • 1 909 275 ÷ 2 = 954 637 + 1;
  • 954 637 ÷ 2 = 477 318 + 1;
  • 477 318 ÷ 2 = 238 659 + 0;
  • 238 659 ÷ 2 = 119 329 + 1;
  • 119 329 ÷ 2 = 59 664 + 1;
  • 59 664 ÷ 2 = 29 832 + 0;
  • 29 832 ÷ 2 = 14 916 + 0;
  • 14 916 ÷ 2 = 7 458 + 0;
  • 7 458 ÷ 2 = 3 729 + 0;
  • 3 729 ÷ 2 = 1 864 + 1;
  • 1 864 ÷ 2 = 932 + 0;
  • 932 ÷ 2 = 466 + 0;
  • 466 ÷ 2 = 233 + 0;
  • 233 ÷ 2 = 116 + 1;
  • 116 ÷ 2 = 58 + 0;
  • 58 ÷ 2 = 29 + 0;
  • 29 ÷ 2 = 14 + 1;
  • 14 ÷ 2 = 7 + 0;
  • 7 ÷ 2 = 3 + 1;
  • 3 ÷ 2 = 1 + 1;
  • 1 ÷ 2 = 0 + 1;

2. Construct the base 2 representation of the positive number:

Take all the remainders starting from the bottom of the list constructed above.

125 126 255 255(10) Base 10 decimal system number converted and written as a base 2 unsigned binary equivalent:

125 126 255 255 (base 10) = 1 1101 0010 0010 0001 1011 0010 0010 1001 0111 (base 2)

Spaces were used to group digits: for binary, by 4, for decimal, by 3.


How to convert unsigned integer numbers (positive) from decimal system (base 10) to binary = simply convert from base 10 to base 2

Follow the steps below to convert a base ten unsigned integer number to base two:

  • 1. Divide repeatedly by 2 the positive integer number that has to be converted to binary, keeping track of each remainder, until we get a QUOTIENT that is equal to ZERO.
  • 2. Construct the base 2 representation of the positive integer number, by taking all the remainders starting from the bottom of the list constructed above. Thus, the last remainder of the divisions becomes the first symbol (the leftmost) of the base two number, while the first remainder becomes the last symbol (the rightmost).

Example: convert the positive integer number 55 from decimal system (base ten) to binary code (base two):

  • 1. Divide repeatedly 55 by 2, keeping track of each remainder, until we get a quotient that is equal to zero:
    • division = quotient + remainder;
    • 55 ÷ 2 = 27 + 1;
    • 27 ÷ 2 = 13 + 1;
    • 13 ÷ 2 = 6 + 1;
    • 6 ÷ 2 = 3 + 0;
    • 3 ÷ 2 = 1 + 1;
    • 1 ÷ 2 = 0 + 1;
  • 2. Construct the base 2 representation of the positive integer number, by taking all the remainders starting from the bottom of the list constructed above:
  • 55(10) = 11 0111(2)
  • Number 5510, positive integer (no sign), converted from decimal system (base 10) to unsigned binary (base 2) = 11 0111(2)