In this paper, the phytic acid conversion film was prepared on copper foil by electrolysis for the first time. Its morphology and chemical composition were characterized by SEM, EDS, FTIR and XPS, and its corrosion resistance was evaluated using electrochemistry. Finally, the formation mechanism of the phytic acid conversion film on the surface of copper foil and its corrosion resistance mechanism were revealed by quantum chemical calculations and molecular dynamics simulations. The results show that the phytic acid conversion film on the surface of copper foil prepared by electrolysis is uniform and dense. The electrochemical impedance value of copper foil in 3.5 wt% NaCl solution increased from 3956 Ω·cm2 to 24828 Ω·cm2 after the preparation of phytic acid conversion film, and the protection efficiency reached 91 %. During the electrolysis process, copper atoms are oxidized into copper ions, which can be coordinated with phytate ions to form negatively charged complexes. Under the action of electric field force, these complexes move toward the anode copper foil, and finally adsorbed on the surface of the anode copper foil to form phytic acid conversion film. The molecular dynamics show that the adsorption configuration of the phytic acid molecule on Cu(111) surface changed from perpendicular to parallel, and the binding energy increased from 234.87 kJ/mol to 354.23 kJ/mol after applying an electric field, Therefore, the phytic acid conversion film prepared on the surface of copper foil by electrolysis has good corrosion resistance. This study provides a new method for the rapid preparation of phytic acid conversion film with excellent performance on metal surface.