The invention discloses a formula of an acid plating solution for a rhenium iridium alloy coating on surface of a glass die and a preparation method thereof. The formula of the acid plating solution is characterized by comprising of 0.001-0.5mol / L of perrhenate, 0.001-0.45mol / L of sodium hexabromoiridate, 0.001-0.25mol / L of chloriridium acid hydrate, 0.001-0.95mol / L of oxalic acid treated as a complex or (and) 0.001-0.95mol / L of citric acid treated as the complex, and additives, wherein the additives include one or a plurality of 0.001-0.035mol / L of sulfuric acid, 0.001-0.045mol / L of nitrous acid, 0.001-0.020mol / L of hydrofluoric acid, and 0.001-0.015mol / L of hydrogen bromide. The preparation method comprises the steps of dissolving all the above-mentioned components in deionized water; adding 1.0-3.0mol / L of sodium hydroxide or 1.0-3.0mol / L of ammonium hydroxide solution to regulate the pH of electrolyze to be 1.5-6.5; and then electrolytically depositing a rhenium iridium alloy coating on the surface of a conductive die workpiece electrode through constant current or pulse, wherein the rhenium iridium alloy coating contains 1-85at% of iridium, the thickness of the coating is 1nm-100 microns, and the current efficiency is up to 50-90%, so that the amorphous or (and) nanocrystalline rhenium iridium alloy coating is obtained. The amorphous or (and) nanocrystalline rhenium iridium alloy coating is uniform in component distribution, high in combination intensity, outstanding in corrosion resistance, high in hardness, high in oxidation resistance, high in mechanical stability,resistant to abrasion, resistant to high temperature and releasability. Therefore, the service life of the glass die can be effectively prolonged.