An electrical connector includes an insulation body. Multiple terminals are fixed on the insulation body in an upper row and a lower row. Each terminal has a soldering portion. The soldering portions are arranged in two rows in a front-rear direction. A middle shielding sheet is fixed on the insulation body, and has a planar plate portion. A baffle extends downward from a rear end of the plate portion and is located between the soldering portions in the two rows. The plate portion extends horizontally in a lateral direction to form a connecting portion, which is in front of the rear end of the plate portion. A rear edge of the connecting portion bends downward to form a leg. In the front-rear direction, a distance between the rear end of the plate portion and the rear edge of the connecting portion is greater than a width of the connecting portion.