The invention discloses a filter at the front end of the outer part of a household appliance for improving the power spectral density of power line communication. The filter comprises a bleeder resistor R, common mode chokes Lf1 and Lf2, X capacitors C1, C2, C3 and C4, difference mode inductors L1 and L2, and high-voltage pulse absorbing capacitors C5, C6, C7 and C8, wherein the bleeder resistor R and the X capacitors C1, C2, C3 and C4 are connected between a null line and a live wire in parallel in sequence, two coils of the common mode chokes Lf1 are connected to a null line and a live wire between the capacitor C1 and the capacitor C2 in series respectively, two coils of the common mode chokes Lf2 are connected to a null line and a live wire between the capacitor C2 and the capacitor C3 in series respectively, the difference mode inductors L1 and L2 are connected to a null line and a live wire between the X capacitor C3 and the X capacitor C4 in series respectively, the high-voltage pulse absorbing capacitors C5 and C6 are connected in series, and the high-voltage pulse absorbing capacitors C7 and C8 are connected in series. The filter can be used for inhibiting an EMI (electro magnetic interference) signal conducted by the household appliance into a power grid, and blocking a power line carrier signal from being lost in the household appliance, so that the power spectral density of the power line communication is improved.