Electronic – Replace x2 capacitor with polyfilm?

ac-dccapacitorpower supply

I have a 12 V power supply that's not working anymore, so I opened it up and checked for faulty components with a multimeter, and I found two of them so far. One was a 1000 µF 25 V electrolytic which I quickly replaced with a new one, and two was an X2 capacitor with 0.33 µF 275 V rating.

My problem is I don't have an X2 capacitor with that value. All I have is a 0.1 µF 275 V X2. But I do have a 0.33 µF 400 V polyfilm (Mylar) capacitor with me. Can I use that instead of an X2?

Best Answer

...can I use that (polyfilm (myler) capacitor) instead of an X2?


There's a reason for that and that reason is safety. Especially in a (mains connected) power supply you want to take safety seriously. If you don't you risk harm from smoke/fire/explosion etc.

You should read this article on all about circuits why using an X-class capacitor is needed.

An X2 class capacitor will be able to withstand the peak voltages which appear on the mains. Also the way an X2 class capacitor is supposed to fail influences safety. A class-less capacitor is simply not a good choice for circuitry connected to mains.