Novel tetragonal matrix Ba0.5Gd0.5-xNaxF2.5-x, where x = 0.05, doped by Yb3+, Ho3+, Er3+, was synthesized by molten salt synthesis (MSS) from nitrate flux. XRD data show that tetragonal phase with a = 4.122(1) Å, c = 17.672(1) Å is stable in argon atmosphere up to 960 °C. Luminescence spectra recorded in 500-900 nm and 1050-1700 nm upon 974 nm pumping demonstrated the characteristic luminescence at 1550 nm (4I13/2 → 4I15/2) for Er3+ and 1150 nm (5I6 → 5I8) for Ho3+. The relative thermal sensitivity (Sr) at 296-316 K were 0.3 %*K-1 and 5.5%*К-1 in shortwave infrared (SWIR) and visible range, respectively. Synthesized luminophores can be used as dual-range optical temperature sensors, which simultaneously operating in visible and SWIR ranges.