[reaction: see text]. Functionalized diazonium salts for molecular electronic devices are prepared by the reaction of the corresponding anilines with NOBF4 in sulfolane-acetonitrile solvent.