The invention discloses an oil and rust remover for a metal surface. The oil and rust remover is prepared from the following raw materials in parts by weight: 2-4 parts of hydrochloric acid, 3-6 partsof oxalic acid, 2-4 parts of citric acid, 3-5 parts of ascorbic acid, 3-6 parts of a complexing agent, 2-5 parts of a corrosion inhibitor, 2-4 parts of a permeability increasing agent, 2-6 parts of asurfactant and 50-90 parts of water, wherein the oil and rust remover is prepared from the following steps: S1, adding 400 mL of water into a reaction kettle of filling equipment; then slowly heatingthe solution to 30-50 DEG C by a heating element; and at the moment, driving a rotating motor to start to stir, adding the corrosion inhibitor while stirring, and stirring the solution for 10-15 minand fully dissolving the solution. The prepared oil and rust remover for the metal surface has the functions of deoiling, disacidifying, inhibiting corrosion and preventing oxidization. The rust removal time for light rust is about 2 min and the rust removal time for heavy rust is 5-6 min, and the deoiling rate can reach over 98%.