An electrical connector (100) for receiving an electronic device, includes a shielding member (3), a terminal block (1) assembled on said shielding member (3), a plurality of terminals (2) received in the terminal block (1). Each terminal has a mating portion (23), an end portion (21) and a middle portion (22) connecting with the mating portion (23) and the end portion (21). The mating portion (23) and the end portion (21) of the terminal (2) are respectively located at two sides of the main body (11) of the terminal block (1) in the longitudinal direction, the end portions (21) of the adjacent terminals (2) are disposed at two opposite sides of the main body (11) of the terminal block (1), and the middle portion (22) of the terminals (2) is engaged with the terminal block (1).