The synthesis of metal nitrides, which are a class of functional materials, generally requires an air-free atmosphere, hindering their efficient exploration and production. In this study, we demonstrate the rapid screening of the nitridation conditions of 3d transition metal oxides under an ambient atmosphere via in situ synchrotron X-ray diffraction (XRD). Among V 2 O 5 , NaVO 3 , and a mixture of NH 4 VO 3 and NaHCO 3 as the precursors and Dicyandiamide as the nitrogen source, in situ XRD analysis shows that NaVO 3 is a suitable precursor to form a single-phase rock salt structure, which is an anion-rich oxynitride, V 0.69 N 0.53 O 0.47 . The nitridation of NaFeO 2 with Dicyandiamide results in the formation of Fe 3 N through FeNCN, which is converted to Fe 3 C after further heating. The reaction of NaMnO 2 affords MnNCN, while NaCrO 2 does not produce chromium nitride/carbodiimide. Guided by the in situ XRD results, these metal oxides and Dicyandiamide are placed in an alumina crucible and heated in a box furnace under an ambient atmosphere to synthesize nitride/carbodiimide/carbide on a gram scale without a gas cylinder. This study presents a novel and efficient method for synthesizing various nitrides, oxynitrides, carbodiimides, and carbides under ambient conditions using in situ synchrotron XRD and box furnace, thereby significantly simplifying the nitride synthesis process.