Is it free to refinance a home?

Typically it is not free to refinance your home. There are fees from the bank and if you use a broker they will have fees also.
However there are instances where a bank might waive their refinancing fees either because the government has mandated that banks do this for certain customers, or because the bank wants to keep you as a customer.