The invention discloses a foam stabilizer and a preparation method thereof. The foam stabilizer comprises 0.1-10 parts of cocamidopropyl dimethylamine oxide, 0.2-10 parts of tween 80, 5-20 parts of hexadecanoic acid, 0.1-10 parts of stearic acid, 2.9-15 parts of triethanolamine, 0.1-6 parts of sodium dimethyl benzene sulfonate, 0.1-6 parts of cocamidopropyl betaine, 0.1-6 pars of ammonium fatty alcohol polyoxyethylene ether sulfate, 0.1-2 parts of disodium ethylene diamine tetraacetate, 0.1-2 parts of 1-hydroxyethylidene-1,1-bis-phosphonic acid tetrasodium salt and water. The preparation method comprises the following steps: heating water, adding disodium ethylene diamine tetraacetate, 1-hydroxyethylidene-1,1-bis-phosphonic acid tetrasodium salt, ammonium fatty alcohol polyoxyethylene ether sulfate, cocamidopropyl betaine, cocamidopropyl dimethylamine oxide, sodium dimethyl benzene sulfonate and triethanolamine, stirring and dissolving to obtain a water phase; heating and melting tween80, hexadecanoic acid and stearic acid to obtain an oil phase; and rapidly mixing the water phase and the oil phase and stirring and cooling so as to obtain the foam stabilizer.