The invention discloses an automatic cleaning device for a natural gas pipeline. The cleaning device comprises a device shell and a rubber cup coaxially and fixedly installed outside the device shell; the device shell is composed of a moving assembly cavity, a collecting bin, a rotating part and a gas injection part from left to right; a telescopic moving assembly is movably installed in the moving assembly cavity, a collecting bin is coaxially and fixedly connected to one side of the moving assembly cavity, a fixing cover is fixedly installed in the collecting bin, fan blades are coaxially and rotationally installed in the fixing cover, a rotating shaft is installed on a coaxial fixing rod of the fan blades, a shaft body of the rotating shaft is rotationally connected with a motor through a chain, the motor is fixedly installed on the inner wall of one side of the collecting bin, and a lithium battery is fixedly installed in the collecting bin; a rotating part is coaxially and rotationally installed at the end, away from the moving assembly cavity, of the collecting bin through a sealing bearing, a circular through opening penetrates through the side wall, away from the collecting bin, of the rotating part, a plurality of supporting columns are fixedly installed on the inner wall of the through opening, and fixing rings are fixedly installed at the ends of the supporting columns.