Biochar machine includes a sealed container for rice straw bales with two gates. The top gate is for rice straw feeding and the bottom gate for Biochar. The Biochar unit is equipped with a stirrer operated by an electric motor and a speed reduction unit. The Biochar unit is operated indirectly through a combustion chamber with a fuel burner to heat the sealed container from all sides indirectly. The gases produced as a result of heating the rice straw are collected and returned back to the combustion chamber through a blower.