Provided is an air purifier, including: a body having an air inlet and an air outlet, a blower, an electric control box, an electrostatic absorption device and a carbon dioxide sensor. The air purifier effectively removes dust particles and bacteria in the air, measures and controls the carbon dioxide content in the air, displays the content of carbon dioxide to users and helps to protect human health.