A dual-purpose male/female connector is disclosed. A push button for controlling a terminal base, which is mounted in a USB female socket and includes a connection terminal, to enable the terminal base to extend from or draw back in the female socket is mounted on the USB female socket. When the push button is in an unpushing position the connector forms the USB female socket, and when the push button is pushed the terminal base extends from the insulating frame so as to form a USB male plug.