Er 3+/Yb 3+-codoped transparent oxyfluoride borosilicate glass ceramics containing Ba 2GdF 7 nanocrystals were prepared and spectroscopic properties of rare earth ions were investigated. Fluoride nanocrystals Ba 2GdF 7 were successfully precipitated in glass matrix, which was confirmed by X-ray diffraction (XRD) and transmission electron microscopy (TEM) results. In comparison with the as-made precursor, significant enhancement of upconversion luminescence was observed in the Er 3+/Yb 3+ codoped oxyfluoride glass ceramics, which may be due to the variation of coordination environment around Er 3+ and Yb 3+ ions after crystallization. The transition mechanisms of the green and red upconversion luminescence were ascribed to a two-photon process, and that of the blue upconversion luminescence was a three-photon process.