In recent years, conversion chemical reactions, which are driven by ion diffusion, emerged as an important concept for formation of nanoparticles. Here we demonstrate that the slow anion diffusion in anion exchange reactions can be efficiently used to tune the disorder strength and the related electronic properties of nanoparticles. This paradigm is applied to high-temperature formation of titanium oxynitride nanoribbons, Ti(O,N), transformed from hydrogen titanate nanoribbons in an ammonia atmosphere. The nitrogen content, which determines the chemical disorder through random O/N occupancy and ion vacancies in the Ti(O,N) composition, increases with the reaction time. The presence of disorder has paramount effects on resistivity of Ti(O,N) nanoribbons. Atypically for metals, the resistivity increases with decreasing temperature due to the weak localization effects. From this state, superconductivity develops below considerably or completely suppressed critical temperatures, depending on the disorder strength. Our results thus establish the remarkable versatility of anion exchange for tuning of the electronic properties of Ti(O,N) nanoribbons and suggest that similar strategies may be applied to a vast number of nanostructures.