A filter capacitor is used in electronic circuits to smooth out voltage fluctuations by storing and releasing electrical energy, effectively reducing noise and ripple voltage in power supplies. It plays a crucial role in converting the pulsating DC voltage from rectifiers into a more stable DC voltage, enhancing the performance and reliability of electronic devices.