Direct conversion of N-alkoxyamides to carboxylic esters through tandem NBS-mediated oxidative homocoupling and thermal denitrogenation.