The development of transparent materials is closed to optoelectronic technology. It plays an increasingly important role in various fields. It is not only widely used in optical lens, optical element, optical fiber grating, optoelectronics, but also widely used in the building material, pharmaceutical industry with vessel, aircraft windshield and daily wear glasses.Regard of solving the problem of refractive index measurement in optical transparent materials. We proposed that using the polychromatic confocal method to measuring the refractive index of transparent materials. In this article, we describes the principle of polychromatic confocal method for measuring the refractive index of glass,and sketched the optical system and its optimization. Then we establish the measurement model of the refractive index, and set up the experimental system. In this way, the refractive index of the glass has been calibrated for refractive index experiment. Due to the error in the experimental process, we manipulated the experiment data to compensate the refractive index measurement formula. The experiment taking the quartz glass for instance. The measurement accuracy of the refractive index of the glass is ±1.8×10<sup>-5</sup>. This method is more practical and accurate, especially suitable for non-contact measurement occasions, which environmental requirements is not high. Environmental requirements are not high, the ordinary glass production line up to the ambient temperature can be fully adapted. There is no need for the color of the measured object that you can measure the white and a variety of colored glass.