A controller for a power converter by which the inductance component of the primary wiring for connecting an AC power supply 20 to a power converter and the high-order harmonic component produced by resonance with a capacitor connected as a filter can be reduced even if the input current waveform is distorted.