A superior method for generation of diazomethane and several other gaseous diazoalkanes has been provided by alkali treatment of N-[(N-nitrosoalkylamino) methyl]-carbamates, especially their isopropyl esters, which react smoothly in high yields (81-82% for diazomethane).