The invention discloses a wire connector, which comprises a connector body, a locking block provided on the connector body, and a locking device for detachably connecting the connector body and the locking block. There is a concave-convex crimping structure, and correspondingly, one surface of the locking block is provided with a matching concave-convex crimping structure, and at least one of the connector body and the locking block is provided with a groove for preventing the wire from sliding laterally. limit structure. The wire connector has simple structure, good wire clamping effect, good tension bearing capacity, good electrical performance, convenient connection and installation, flexible disassembly, strong versatility, self-locking and easy unlocking, and can realize safe and stable connection.