Selective oxidation of minimally protected aminopolyols, using galactose oxidase variant F2, affords biologically relevant iminosugars.