Simultaneous morphology and upconversion luminescence tuning of BaWO 4 nanocrystals excited at 980 nm has been achieved by the successful double doping of different Ln 3+ ions. Especially, the substitution sites of Ln 3+ into BaWO 4 have been investigated by the combination of experimental and density functional theory (DFT) calculations for the first time. The Ba site is the most likely location for BaWO 4 :Yb 3+ , BaWO 4 :Er 3+ , BaWO 4 :Tm 3+ , and Ba-WO 4 :Ho 3+ . However, when codoping Yb 3+ with other Ln 3+ species into the unit cell of BaWO 4 , the DFT calculations indicated that it is more likely that Yb 3+ engages the W site of BaWO 4 , while the doped Ln 3+ remains at its location at the Ba site, with Yb 3+ in the near W layer in the c axis. In addition, a low-cost and sensitive BaWO 4 :Yb 3+ /Er 3+ @Au for glucose detection is designed through a luminescence resonance energytransfer process and characterized by fluorescence techniques. The limit of detection of BaWO 4 :Yb 3+ /Er 3+ @Au was 3.1 nM. BaWO 4 :Yb 3+ /Er 3+ @Au can be conveniently extended to detect many analytes involving hydrogen peroxide.