The straw biogas generator comprihaiqi a tank (13); a heat exchanger(16) is positioned inside the tank (13); a water inlet(2) and a return pipe(1) are arranged at the heat exchanger(16); a discharge opening(4) is arranged at the lower part of the outer wall of the tank (13); a feed opening(5) is arranged at the upper part of the outer wall of the