A continuous-flow protocol for the synthesis of diazo acetonitrile was developed. It was further applied in iron-catalysed insertion reactions of diazo acetonitrile into N-H and S-H bonds to yield valuable α-substituted acetonitrile, including gram-scale synthesis.