Converting Decimal To Other Bases

Master the 'Repeated Division' method for converting integer decimal numbers into binary, octal, or hexadecimal.

6dc23a36...
html

The Magic of Remainders

Hook about how remainders build the new number.

When breaking down a base-10 number into another base, the leftover pieces (the remainders) literally build your new number from the ground up!
8c1b3eeb...
content

The Repeated Division Method

Explain the 4 steps to convert decimal to any base.

Converting a decimal (base-10) number to binary, octal, or hexadecimal might seem complex, but it relies on one universal algorithm: repeated division.

Step 1 & 2: Divide and Note

Step 1: Divide your given decimal number by the base value (bb) of the target number system (e.g., 2 for binary, 8 for octal, 16 for hex).

Step 2: Note the remainder of this division. This remainder becomes part of your newly converted number.

1 / 3
f532cb6f...
IMAGE

Decimal to Binary Example

Visual of 65 divided by 2.

A polished process flowchart showing the conversion of decimal 65 to binary. Central column shows successive divisions by 2 with quotients (65 down to 0). Right column shows the calculated remainders (1, 0, 0, 0, 0, 0, 1). A large prominent upward-pointing arrow on the right is labeled 'Step 4: Collect the remainders from bottom to top'. Final result displayed is (65)_10 = (1000001)_2. Rounded card-style nodes, pastel gradient fills, elegant sans-serif typography, generous whitespace, subtle connecting arrows, light neutral background.
Click to zoom

Repeatedly divide by 2, collect remainders bottom-up.

49267ead...
content

Watch Out for Hexadecimal!

Explain how to handle remainders greater than 9 in Hex.

The exact same method works for base 8 and base 16. You just swap out the divisor. However, hexadecimal introduces a unique challenge you must watch out for.

The Hex Alphabet Rule

If your division yields a remainder of 10, 11, 12, 13, 14, or 15, you MUST convert it to its Hexadecimal symbol (A, B, C, D, E, F) before writing your final answer. Leaving it as a two-digit decimal will ruin your conversion.

1 / 3
9477900f...
reading

Practice: Decimal to Octal

Fill blanks for converting 65 to Octal.

0 of 5 blanks filled
To convert the decimal number 65 to its octal equivalent, you must repeatedly divide the number by the base value, which is. In the first step, dividing 65 by 8 yields a quotient ofand a remainder of 1. Next, you take that quotient and divide it by 8 again, which gives a new quotient of 1 and a remainder of. Finally, dividing 1 by 8 results in a quotient of 0 and a remainder of. Once the quotient reaches zero, you stop the division process and collect the recorded remainders. By reading these remainders from bottom to top, you get the final octal answer, which is.
95b2f8cc...
quiz

Test Your Conversion

Convert 122 to binary.

1 / 4

Based on the repeated division process, what is the binary equivalent of the decimal number 122?