A practical way to enhance the synthesis of N8- from an N3- precursor, studied by both computational and experimental methods.