A systematic ab initio treatment of the nitryl halides (XNO2) and the cis- and trans- conformers of the halide nitrites (XONO), where X = Cl, Br, and I, have been carried out using highly correlated methods with sequences of correlation consistent basis sets. Equilibrium geometries and harmonic frequencies have been accurately calculated in all cases at the explicitly correlated CCSD(T)-F12b level of theory, including the effects of core-valence correlation for the former. Where experimental values are available for the equilibrium structures (ClNO2 and BrNO2), the present calculations are in excellent agreement; however, the X-O distances are slightly too long by about 0.01 Å due to missing multireference effects. Accurate predictions for the iodine species are made for the first time. The vertical electronic excitation spectra have been calculated using equation-of-motion coupled cluster methods for the low-lying singlet states and multireference configuration interaction for both singlet and triplet states. The latter also included the effects of spin-orbit coupling to provide oscillator strengths for the ground state singlet to excited triplet transitions. While for ClNO2 the transitions to excited singlet states all occur at wavelengths shorter than 310 nm, there is one longer wavelength singlet transition in BrNO2 and two in the case of INO2. The long wavelength tail in the XNO2 species is predicted to be dominated by transitions to triplet states. In addition to red-shifting from X = Cl to I, the triplet transitions also increase in oscillator strength, becoming comparable to many of the singlet transitions in the case of INO2. Hence in particular, the latter species should be very photolabile. Similar trends are observed and reported for the halogen nitrites, many of which for the first time.