The invention provides a modularized box type charging and battery swapping station used for replacing a battery of an electric car. The charging and battery swapping station comprises a central monitoring room 1, a battery swapping robot 2 and a charging and battery swapping box 3, wherein the central monitoring room 1 is used for monitoring the charging and battery swapping station, the battery swapping robot 2 is located between the charging and battery swapping circuit 3 and the electric cars provided with batteries to be replaced, and the battery between the electric cars provided with batteries to be replaced can be replaced; and a battery storage rack 301, a battery charger cabinet 302, a monitoring cabinet 303, a distribution cabinet 304, a temperature control system 305 and an access path 306 are arranged in the charging and battery swapping box 3. The modularized box type charging and battery swapping station, provided by the invention, has the advantages of strong adaptability, flexible configuration and expansibility, small floor space, high working efficiency, short construction period, benefit for large-scale popularization and construction, high automation degree, smaller device maintenance amount, simple structure and low fault rate.