The formation of strong intramolecular hydrogen bonds was observed in a series of 2-amino-5-nitrosopyrimidines with alkylamino and arylamino substituents at positions 4 and 6. Mixtures of two rotamers differing in the orientation of the nitroso group were observed in the NMR spectra of the compounds where two distinct intramolecular hydrogen bonds could be formed. The ratio of the two rotamers depends strongly on the character of the substituents at positions 4 and 6 and can be finely tuned over a broad range of conformation ratios. The experimental results were supported by DFT calculations, which also made it possible to explain the apparent contradiction in the experimental dependence of the rotamer ratio on the Hammett constants for the arylamino substituents. The UV/vis spectra of the compounds also significantly depend on the nature of the substituents; however, the orientation of the nitroso group does not have any influence on the position of the absorption bands in the spectra.