The invention discloses an air purifier, comprising a fastener mounted in an electrical connection seat, a purifier, a clamp seat fixed above the right side face of the purifier, and a plug clamped into the clamp seat, wherein the center of the front end face of the purifier is provided with a regulation and control part, the front end face of the purifier above the regulation and control part is provided with an atomization opening, the bottom of the purifier is provided with a corner post, the plug comprises a plug joint part and a grabbing part fixed to the bottom of the plug joint part, a slotted hole is formed in the end face of the top of the plug joint part, a tactile sensor is arranged in the slotted hole, a first sliding-connection cavity is formed in the plug joint part below the slotted hole, second sliding-connection cavities are correspondingly formed in left and right sides of the first sliding-connection cavity, the sides, away from the first sliding-connection cavity, of the second sliding-connection cavities are provided with first cavity bodies, and first sliding-connection blocks are arranged in the second sliding-connection cavities. The air purifier is simple in structure and convenient to use, has a better purification effect, can be automatically controlled and locked, plugging connection is facilitated, the stability is high after plugging, the phenomenon of loose plugging connection caused by accidental touch is prevented, and meanwhile the service life is prolonged.