The invention relates to a single-phase universal electric energy quality controller for power supply for electrified railways, and belongs to the technical field of flexible AC power transmission and distribution; the invention comprises a single-phase multi-coil transformer composed of a primary coil and n secondary coils, so that the secondary coils of the transformer can be connected in parallel with n voltage sources of current transformers; n capacitors are connected with n voltage source current transformers, so as to form a single-phase chain-type H-bridge current transformer with n chains; the AC terminal of the H-bridge current transformer is directly connected with the traction grid through a reactor. The invention has the functions of active power control, reactive power compensation and harmonic compensation, so as to resolve three-phase voltage unbalance, voltage fluctuation, low power factor and harmonic pollution and so on that exist in ER traction transformer stations, effectively lower the capacity of traction transformers, increase ER transport capacity and transportation capability. Moreover, the invention is characterized in small occupied area, little loss and low cost, in order to gain perfect harmonic suppression characteristics and dynamic response features, and provide convenience in industrial production and improve device reliability.