Upvote:1
The least steps you take to convert currencies, the better. Otherwise fees and commissions add up. To get a reasonable rate, it is generally best to go to your bank and sell them the foreign currency. Bills are always accepted not usually coins.
Keep in mind that currency rates vary constantly, several times per second but places usually fix the rate at different times. Banks for example will often have a posted rate for the day but hotels may hold on to a rate for a whole week. So, there is no hard rule to get the best exchange rate possible.
Note that some currencies are classified as NDF which stands for Non-Deleverable Forwards. For these currencies, it is not legal to exchange them outside of the issuying country. Therefore banks will not be able to buy them back and only shady places will exchange them for a very steep discount. This is the case for Malaysian Ringgits, Indonesian Rupiah and Indian Rupees to name a few.
Upvote:2
This answer won't help someone in your particular situation, but my solution is to use up any remaining currency in the last, or nearly last, place in which it is possible to spend money before leaving the country that uses the currency in question. (Typically, this will be an airport, railway station or eatery.) If the purchase price exceeds the amount of leftover currency you have, use a debit card to cover the difference.