Photovoltaic inverter and air conditioner

The utility model provides a photovoltaic inverter. The photovoltaic inverter includes a basic photovoltaic inverter unit; the basic photovoltaic inverter unit comprises a photovoltaic cell assembly, a DC-DC booster, a first change-over switch, a grid connected inverter and a grid connected filter; and the photovoltaic cell assembly, the DC-DC booster, the grid connected inverter, the grid connected filter and an alternating current grid are electrically connected together in sequence. The first change-over switch includes an input terminal and two output terminals which are respectively a first output terminal and a second terminal; the input terminal of the first change-over switch is connected with an output terminal of the DC-DC booster; the first input terminal of the first change-over switch is connected with an input terminal of the grid connected inverter, to connect girds and output an alternating current; and the second output terminal of the first change-over switch is used as a direct current bus port and used for outputting an direct current. The utility model further relates to an air conditioner. By adopting the photovoltaic inverter and the air conditioner, the utilization efficiency of the electric energy generated by the photovoltaic cell assembly is raised.