The invention relates to methods for producing rebaudioside D and/or rebaudioside M, and compositions comprising the same. The invention provides a method for producing RD and/or RM compositions. The method comprises using rebaudioside A and/or stevioside as substrate and a recombinant microorganism or an enzyme produced by the recombinant microorganism or a metabolite of the recombinant microorganism to catalyze the reaction of the substrate in the presence of sucrose and trisodium citrate and produce a mixture of rebaudioside D and rebaudioside M, and then separates and purifies the mixture to obtain rebaudioside D or rebaudioside M.