In the title compound, C5N6, all the atoms are approximately coplanar. In the crystal, mol-ecules are packed with short contact distances of 2.885 (2) (between the diazo N atom connected to the ring and a cyano N atom on a neighboring mol-ecule) and 3.012 (2) Å (between the terminal diazo N atom and an N atom of a neighboring imidazole ring).
Keywords: carbonitrile; crystal structure; diazo; imidazole.