when an inverter is charging, AC current gets converted to DC by the use of a rectifier and when its giving out current it gives out current as AC. but wht instrument converts a DC to an AC?
Your answer is in the question itself. The device which converts dc to ac is called inverter.