The synthesis of hydroxyesters from carboxylic acids and unprotected amino alcohols in both continuous flow and batch processes is reported. The formation of a transient diazonium species with a dinitrite reagent is key in this transformation. The reaction conditions are compatible with a variety of functional groups.