The C-N borylation of arylhydrazine hydrochlorides with bis(pinacolato)diboron was achieved under photochemical and electrochemical conditions, respectively. This novel and scalable transformation provides two efficient and mild transition-metal-free synthetic routes towards aryl boronate esters from easily available arylhydrazines.