This article reports a low-cost yellow-emitting Y3Al5-xBxO12-xNx:Ce3+ phosphor with an enhanced luminescent intensity and excellent thermal stability for white light-emitting diodes (LEDs). It was synthesized by a simple gas-pressure sintering (GPS) process. The effect of B3+–N3− incorporation on the optical properties of Y3Al5O12:Ce3+ phosphor was investigated. The addition of appropriate amounts of boron nitride (BN) leads to a marked increase in photoluminescent intensity and a slight shift of its emission spectra toward the blue region, which is assigned to the improved crystallinity and increased particle size. Especially, the prepared oxynitride phosphor does not exhibit any thermal quenching under high temperature, and the emission intensity at 250°C even increases up to 175% of that measured at 20°C. Finally, the white LED flat lamp with luminous efficiency as high as 101 lm/W, color rendering index of 72, and correlated color temperature of about 6600 K is successfully realized by using YAG:Ce3+ phosphor doped with 0.5 molar ratio BN, which is acceptable and promising for general indoor illuminations to replace fluorescent or incandescent lamps.