In this paper, the modulation of the Fano resonance (FR) of dielectric grating has been demonstrated by controlling the crystallization fraction of phase change material film. We analyze the optical characteristics of the grating structure thoroughly by the energy band structure, Q factor, and the electric field distribution of three TE modes. It is verified that the Q factor and the Fano lineshape are related to the thickness of the Ge <sub xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">2</sub> Sb <sub xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">2</sub> Te <sub xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">5</sub> (GST) layer. In addition, by changing the crystallization fraction of the GST layer, non-volatile modulation of the Q factor can be achieved. We also demonstrate that the crystallization fraction of the GST layer affects the Fano lineshape significantly. By changing the crystallization fraction of the GST layer, the non-volatile modulation of Fano lineshape from asymmetric parameter <italic xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">q</i> = −1 to <italic xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">q</i> = 1 can be achieved. These features make this grating structure an excellent optically reconfigurable device in various fields including lasing spaser and biosensing with improved performance.