A power converter for compensating a maximum output power includes a power switch, a control circuit, an oscillator and a frequency modulator. The control circuit generates a PWM signal in response to the pulse signal generated by the oscillator. The frequency modulator generates a second discharge signal to the oscillator for controlling the maximum output power of the power converter. The second discharge signal is decreased for prolonging a switching period of the PWM signal under a high-line voltage of the power converter.