The present disclosure disclosed an electrical connector comprising a substrate and a housing. The substrate comprises a plugging part and a connecting part. A plurality of signal terminals and a plurality of ground terminals are disposed on at least one surface of the plugging part. A difference in length exists between an edge of each of the plurality of signal terminals away from the connecting part and an edge of each of the plurality of ground terminals away from the connecting part. The difference in length is 0.3 to 0.5 mm. The housing covers the connecting part, comprising a top cover covering a surface of the substrate comprising the plugging part.