Published: May 5, 2026 · 6 min read
The Core Algorithm
The repeated division method converts any decimal number to any base. Divide by the target base, record the remainder, replace with quotient, and repeat until zero. Read remainders in reverse.
Example: 255 to Hex
255 ÷ 16 = 15 r 15→F | 15 ÷ 16 = 0 r 15→F | Result: FF
Example: 156 to Binary
156→78→39→19→9→4→2→1→0 with remainders 0,0,1,1,1,0,0,1. Result: 10011100
Why It Works
Each division extracts the digit for the current position via the remainder. The quotient represents value for higher positions. Like making change in a different currency.