Power inverter is an electronic device that converts Direct Current electricity power from low voltage sources like 12-volt batteries or solar panels to produce Alternative Current also known as “AC” voltage and current same as in power grid to use AC power tools, laptops, TVs or appliances if AC mains power is not available. Some power inverters use a modified sine wave and the others a pure sine wave. The modified sine wave is not the same as AC electricity provided to your home, and if you use sensitive electronics like TVs and computers you require a pure sine wave inverter. Inverter is electronic oscillator. Early mechanical AC to DC converters were made to work in reverse, and thus were “inverted”, to convert DC to AC.
The batteries attached to the inverter will discharge eventually as the inverter draws power and will need to be recharged. To recharge the batteries you can use power generator or solar power. Solar power is one of the most convenient ways if you away from home, and if properly connected and setup, your batteries will automatically recharge by a charge controller whenever there is enough sunlight.