Nickel oxide (NiO) is a p-type oxide and nitrogen is one of the dopants used for modifying its properties. Until now, nitrogen-doped NiO has shown inferior optical and electrical properties than those of pure NiO. In this work, we present nitrogen-doped NiO (NiO:N) thin films with enhanced properties compared to those of the undoped NiO thin film. The NiO:N films were grown at room temperature by sputtering using a plasma containing 50% Ar and 50% (O2 + N2) gases. The undoped NiO film was oxygen-rich, single-phase cubic NiO, having a transmittance of less than 20%. Upon doping with nitrogen, the films became more transparent (around 65%), had a wide direct band gap (up to 3.67 eV) and showed clear evidence of indirect band gap, 2.50–2.72 eV, depending on %(O2-N2) in plasma. The changes in the properties of the films such as structural disorder, energy band gap, Urbach states and resistivity were correlated with the incorporation of nitrogen in their structure. The optimum NiO:N film was used to form a diode with spin-coated, mesoporous on top of a compact, TiO2 film. The hybrid NiO:N/TiO2 heterojunction was transparent showing good output characteristics, as deduced using both I-V and Cheung’s methods, which were further improved upon thermal treatment. Transparent NiO:N films can be realized for all-oxide flexible optoelectronic devices.