Through the use of flow chemistry in multistep processes, dangerous but synthetically useful diazo reagents can be made accessible for large scale applications. The generation, isolation and use of diazo compounds can be performed continuously, therefore never accumulating large quantities of highly energetic material. The use of inline analytics via infrared spectroscopy is key in developing these processes