Decimal to any base

Successively divide and keep track of the remainder, and then reverse the place value

Any base to decimal

How To Convert Hexadecimal to Decimal

Write out the powers of the base from least to most significant bit, and sum the products of the bits and powers