Based on the bioinspired wavy leading-edge, the stall characteristics of the NACA0012 airfoil are optimized. In this paper, the semicircle plus line segment is used to obtain the wavy leading edge. The aerodynamic forces of the airfoil are measured by a high-precision balance, and the detailed flow features of the airfoil are obtained by the oil flow tests. Then, combined with numerical simulation, the optimization mechanism is obtained. The operating conditions are as follows: Mach number ranging from 0.4 to 0.8, and angle of attack ranging from −4° to 25°. The results show that in high speed airflows, compared with the basic airfoil, the lift coefficient of the wavy leading-edge airfoil does not decrease sharply with the increase of the angle of attack, and the drag coefficient of the wavy leading-edge airfoil is similar to the basic airfoil; among the three types of airfoils studied, the larger wavy leading-edge feature size has better aerodynamic characteristics; combined with the numerical simulation results, it can be seen that the stall mechanism of airfoils varies at different Mach numbers. The wavy leading-edge generate streamwise vortex. The streamwise vortices increase energy transport in the boundary layer. Therefore, the separation zone moves toward the trailing edge of the airfoil, and the stall characteristics of the airfoil are optimized.