Formula and method
Each digit contributes its value multiplied by a power of the input base. Repeated division expresses the same integer in another base.
Worked example
Hexadecimal FF represents 15 × 16 + 15 = 255, equivalent to binary 11111111 and octal 377.