The invention relates to a vehicle-mounted solar charger for an electric vehicle. The electric vehicle comprises a solar battery and a vehicle-mounted power battery. The vehicle-mounted solar charger comprises a charging system, a control system, a power module, a solar battery temperature detection module, a voltage sampling module, and a current sampling module. The charging system comprises an input protection module, an input filter module, a boost conversion module, an output filter module, and an output protection module, all of which are sequentially connected in series. The control system is connected with the charging system. The control system comprises a microcontroller module, a TL494 control module, and a drive module. The power module comprises a first power module and a second power module. The solar battery temperature detection module is connected with the solar battery and the microcontroller module. The beneficial effect is that the vehicle-mounted solar charger for an electric vehicle with the advantages of high tracking response speed, large range of output voltage and stable performance is provided.