In organic chemistry, isodiazomethane, also known as isocyanamide, aminoisonitrile, or systematically as isocyanoamine, is the parent compound of a class of derivatives of general formula RN–NC. It has the condensed formula HN–N≡C, making it an isomer of diazomethane.  It is prepared by protonating an ethereal solution of lithiodiazomethane, LiCHN, with aqueous NaHPO or NHCl.  The parent compound is only marginally stable at room temperature and is isolated by removal of solvent at –50 °C.  Derivatives are generally prepared by dehydration of the corresponding substituted formylhydrazine with COCl and EtN.
Earlier, the compound was misidentified as the isomeric nitrilimine, HN–N≡CH.  However, this structure was disproven by H NMR studies, which show a compound with a single signal at δ 6.40 ppm in (CDCD)O instead of two signals expected for nitrilimine.  Moreover, an infrared band at 2140 cm was assigned to the isocyano group.  Transition metal complexes of isodiazomethane have been prepared. In bulk form isodiazomethane is a liquid which decomposes when the temperature exceeds 15 °C. If it is heated to 40 °C, the substance explodes. A solution of isodiazomethane in diethyl ether at –30 °C gradually isomerizes to diazomethane upon exposure to sodium hydroxide for 20 min.
Microwave spectroscopy indicates that unlike diazomethane, isodiazomethane is not completely planar, with the amino nitrogen undergoing inversion.  An ab initio study indicated that there is some N–N double bond character in HN–N≡C, although less so than in the N–C bond of HN–C≡N. Like other isocyanide derivatives and carbon monoxide, its primary resonance form carries a negative charge and lone pair on carbon, a comparatively rare situation for neutral molecules.  A resonance form with zero formal charge on all atoms also has some importance; however, the carbon atom only has a sextet of electrons and is formally a carbene.