Er3+ ions doped oxyhalide barium borate glasses were prepared by means of conventional melt quenching technique. In the studied glass system, besides the Er3+ doping, barium oxide was partially replaced by BaF2 and/or BaCl2. The amorphous nature of as-prepared glasses was confirmed by X-ray diffraction patterns. The effects of the compositional changes were investigated through spectroscopic techniques such as optical absorption, emission and decay lifetime. It was found that the luminescence and decay lifetime of Er3+: 4I13/2 → 4I15/2 transition are affected by both Er3+ doping and halide insertions. By applying the Judd-Ofelt (JO) theory, the JO intensity parameters (Ωt, t = 2, 4, and 6) were calculated, and the trend Ω2 > Ω4 > Ω6 was found, which is in accordance with previous studies. Optical properties such as electric and magnetic dipole transition probabilities, fluorescence branching ratios, integrated emission cross sections and radiative lifetimes were also obtained and discussed for many excited states of Er3+ ions. The lifetime of the 4I13/2 excited level was measured and compared with the calculated one.