Abstract: A USB device is disclosed, comprising an external housing including an accommodating space, wherein a top surface of the external housing has a through hole. A main body is disposed in the accommodating space, wherein the main body slides along a direction. A first elastic component presses against the external housing and the main body. A positioning component is perpendicular the sliding direction of the main body and disposed in the through hole.