The invention provides a method for producing granulated sugar and refined sugar by a membrane method. The method comprises the following steps: adding ash, heating, carrying out coarse filtration, carrying out ultra-filtration by utilizing an inorganic membrane with the pore diameter of 0.02 to 0.2mu m, separating molasses and drying and recrystallizing to obtain membrane-method refined sugar. Adevice for producing the granulated sugar and the refined sugar by the membrane method comprises a sugarcane mixed juice source, an ash adding stirring tank, a heat exchanger, a linear sieve with thesize of 40 to 60 meshes, a bent sieve with the size of 80 to 100 meshes, inorganic membrane ultra-filtration equipment with the pore diameter of 0.02 to 0.2mu m, evaporation and concentration equipment, a first sugar boiling tank, a first crystallization-assisting box, first centrifuging and molasses separating equipment and first frying equipment, which are connected in sequence. In a granulatedsugar production process, less lime cream is used and any chemical auxiliary agent is not added, so that the problem of hidden dangers of sugar safety is solved.