To provide an electrical connector that can provide stable contact between a signal transmission terminal and a short-circuit terminal even if the connector is downsized. A female connector 10 has a sub-housing 21 that has a plurality of terminal accommodating cavities 22 provided with a lance 23 by which a female terminal 11 is locked and a plurality of short-circuit terminal accommodating cavities 24 adjacent to the terminal accommodating cavities 22. A short-circuit terminal 12 has a bent part 14 at a forward position in a direction of mating with a mating electrical connector and a contact part 16 at a rearward position in the direction of mating. The sub-housing 21 has a window 25 that is formed at a position to the rear of the lances 23 corresponding to the contact parts 16 of the short-circuit terminals 12 and through which the terminal accommodating cavities 22 and the short-circuit terminal accommodating cavities 24 communicate with each other. The contact parts 16 of the short-circuit terminals 12 are in contact with the female terminals 11 through the window 25.