The invention discloses a method for preparing alkyl glycoside, and belongs to the technical field of fine chemical engineering. The method comprises the steps that bacillus is firstly cultured, bacillus strains are obtained, then a certain number of bacillus strains are moved for ultraviolet mutagenesis, the strains with high reductase activity of acyl coenzymes A obtained after mutagenesis and high fatty alcohol productivity are selected for culture, and then fermentation is carried out; after fermentation is finished, glucose is added into the fermentation broth, and reacting is carried out to generate alkyl glycoside under the action of aldolase. According to the method, the aldolase is adopted as a catalyst, dehydration condensation between the glucose and dehydration of the glucose are avoided, the reaction time is shortened by 12 h through the efficient catalyzing performance of enzymes, the conversion rate and the yield are increased, the yield is increased by 95% or above, and the purity of the alkyl glycoside reaches 96%. The method is easy and convenient to operate, no organic reagent is adopted, environment friendliness is achieved, pollution is avoided, and industrial production is promoted.