With the yearly rise of electric vehicle (EV) ownership in China, the disorderly access of large-scale electric vehicle charging loads brings new challenges to the safe and efficient operation of the power grid. The sparrow search algorithm is used to establish an optimization model with the objectives of minimizing user charging cost, minimizing peak-to-valley difference in distribution network loads and minimizing network loss to achieve optimal scheduling of EVs charging behavior. Compared with the traditional disorderly charging scenario, it is found that the electric vehicle charging strategy using intelligent optimization algorithm can effectively reduce the charging cost of users, significantly reduce the load fluctuation of the grid, lower the voltage offset, decrease the active network loss, and reduce the impact of the EV charging load on the operation security and economy of power system.