Since modern accelerators demand excellent stability to magnet power supply (PS), it is necessary to decrease harmonic currents passing magnets. Aiming at depressing the rappel current from the PS in the Beijing electron-positron collider II, a wavelet-based active power filter (APF) is proposed in this paper. An APF is an effective device to improve the quality of currents. As a countermeasure to these harmonic currents, the APF circuit generates a harmonic current, countervailing harmonic current from PS. An active power filter based on wavelet transformation is proposed. Discrete wavelet transformation is used to analyze the harmonic components in the supply current, and an active power filter circuit works according to the analysis results. Our simulation and experiment results are given to prove the effect of the APF.