The invention discloses a floor socket with an electrical modular replacement function. The floor socket comprises a fixing device, a detection device, a transmission assembly, a power device and a reversing device, wherein the fixing device is connected with the detection device, the transmission assembly is connected with the fixing device, the power device is connected with the fixing device, the transmission assembly is connected with the power device, the reversing device is connected with the fixing device, the fixing device comprises a cover plate, a shell and a mounting plate, the lower side of the cover plate is fixedly connected with the shell, a mounting groove is formed in the cover plate, an air chamber is arranged on the shell, an opening is formed in the upper side of the air chamber, the mounting groove is communicated with the air chamber, rotating shafts are arranged on the two sides of the mounting plate, rotating grooves are formed in the two sides of the mounting groove, the mounting plate is rotationally connected with the rotating grooves through the rotating shafts, the power device comprises a driving motor and a transmission gear pair, a transmission groove is formed in the shell, the driving motor is arranged in the transmission groove, and a shell of the driving motor is fixedly connected with the transmission groove.