The chemical reactions and pathways resulting in the formation of nucleotide-sugars, any nucleotide in which the distal phosphoric residue of a nucleoside 5'-diphosphate is in glycosidic linkage with a monosaccharide or monosaccharide derivative.