The invention discloses a method for detecting defects inside glass. The method comprises the following steps: in a dark environment, irradiating the side surface of glass to be detected by using a linearly-structured light source, wherein the defects inside the glass such as impurities and cracks can scatter a part of light, shooting from the front surface of the glass to be detected by using a high-resolution CCD (charge coupled device) camera, recording a series of images with defect information, moving the glass to a next position, shooting again, and finally obtaining defect images of all irradiated positions of the side surface of the glass to be detected. The visual field of the high-resolution CCD camera is limited, so that firstly, images in a certain layer are two-dimensionally stitched to obtain the defect images of the layer, secondly, two-dimensional coordinates and the layer number of the defects are recorded, and finally, the defect images of all layers are three-dimensionally reconstructed to obtain three-dimensional images of the defects inside the whole glass. The detection method is simple and high in detection accuracy, can accurately detect positions of the defects inside the glass such as the impurities and the cracks.