An efficient conversion of aliphatic and aromatic alcohols or aldehydes into the corresponding primary amides was successfully achieved by using flow chemistry. Excellent yields were obtained in very short reaction times, and thus this method offers an efficient alternative to traditional methods for amide formation.