The present invention relate to the technical field of sockets, in particular a modular switch socket, include a housing, a shell cover is fixedly arranged above the shell, the bottom of the shell cover is provided with a plurality of rectangular frames, and the upper end of the rectangular frame penetrates the shell cover, A box body is arranged in the rectangular frame, the top of the box body is provided with a socket structure, A switch is arranged at the top of the box body on one side of the jack structure, The bottom of the housing is provided with a fixing seat corresponding to the boxbody, two conductive posts are fixed on the fixing seat, the bottom of the box body is provided with a conductive block corresponding to the conductive posts, the bottom of the conductive block is provided with a socket, the upper end of the conductive post is arranged in the socket, the conductive block is electrically connected with the switch, and the switch is electrically connected with thesocket structure. The device has the advantages of simple structure, convenient operation, convenient disassembly and replacement of damaged components, saving maintenance time and improving repair efficiency, and has the protection function to prevent sundries from entering the socket and causing influence on the socket.