A telescopic hidden socket comprises a socket body, a wire collecting and releasing mechanism and a regular hexagonal prism socket mechanism. A main socket mechanism comprises a socket shell, a motor switch key and a master switch key. A regular hexagonal groove used for containing the regular hexagonal prism socket mechanism is formed in the upper end of the socket shell. The wire collecting and releasing mechanism comprises a single-chip microcomputer, a motor, a storage wheel, a second gear and a first gear, wherein a rotor of the motor is fixed to the first gear through a flat key, the second gear is meshed with the first gear, and the second gear is fixed to the storage wheel through a flat key. The regular hexagonal prism socket mechanism comprises a regular hexagonal prism socket body, a zero line, a live line and a ground line, and two-pin jacks or three-pin jacks are formed in the six faces and the top face of the regular hexagonal prism socket body respectively. According to the device, the mechanical and electrical integrated design is adopted, the motor serves as a power source, the rotating direction of the motor is controlled through the single-chip microcomputer, collecting and releasing work of an electric wire is completed through a motor transmission mechanism, seven socket positions can be provided by the regular hexagonal prism socket part, and seven plugs can be plugged basically at the same time in the use process.