The invention discloses a vehicle-mounted charger and a vehicle. The vehicle-mounted charger comprises a
power factor correction unit, a first inversion unit, an isolation
transformation unit and a second inversion unit which are connected in sequence; the AC end of the
power factor correction unit is connected with an external
AC power supply and is used for rectifying and outputting AC input of the external
AC power supply or rectifying and outputting AC to the external
AC power supply; the first inversion unit is used for inverting
alternating current input of an external
alternating current power supply into high-frequency
alternating current, the high-frequency alternating current is output to the second inversion unit in an isolated mode through the isolation
voltage transformation unit, the high-frequency alternating current is inverted and rectified into high-
voltage direct current through the second inversion unit, and the high-
voltage direct current is output to a
battery pack of a vehicle; high-voltage
direct current output by a
battery pack of the vehicle is converted into high-frequency alternating current through the second inversion unit and the isolation
transformation unit, and the high-frequency alternating current is inversed and then is reversely rectified by the
power factor correction unit and output to an external alternating current power supply. According to the invention, the
resonance efficiency is improved, and the vehicle-mounted charger is more power-saving, more durable and faster in charging.