An electrical connector configured to be electrically connected with a mating connector, including an insulating body, having a mating cavity enclosed by a top plate, a bottom plate and two side plates, allowing an insertion portion of the mating connector to be inserted backward therein. Multiple accommodating grooves are formed on the top plate and the bottom plate. A front end of each side plate is concavely provided with a groove communicating with the mating cavity. Multiple terminals are correspondingly accommodated in the accommodating grooves. A shielding shell is fixed to the insulating body. A mating port is enclosed by front ends of a top wall and two side walls of the shielding shell, and is larger than the mating cavity. Two protective members are correspondingly accommodated in the grooves. A front end of each protective member is spaced from the front end of the corresponding side wall.