This paper introduces a single-phase voltage source current-controlled pulse width modulation rectifier model, acting as an active power filter (APF), with a fuzzy logic controller in the inner loop and a simple proportional-integral (PI) d.c. link voltage controller in the outer loop to compensate reactive power and current harmonic components simultaneously from nonlinear loads. The proposed scheme operates with a fixed switching frequency. The control scheme of the APF is simple, since it has fewer control inputs for determining the desired action. It is easily tunable for different performance criteria and can be achieved by means of low-cost of hardware installation, as it does not need to use more sensitive and accurate measuring devices. The model can also compensate both reactive and harmonic current components from nonlinear loads.