The invention discloses an automatic welding device for machining. The automatic welding device for machining comprises a workbench, a cross beam and a moving column. The moving column is provided with a welding head capable of moving. The two sides of the welding head are each provided with a first limiting unit, a second limiting unit and an adjusting seat. Each first limiting unit is close to the welding head, and each second limiting unit is close to the adjusting seat. According to the automatic welding device for machining, the first limiting units are utilized to approach to the position of a weld seam to conduct locating, so that bounce of a steel tube circular seam caused by the cylindricity error due to the self-lengths of steel tubes is lowered and transferred to the ends far away from the circular seam of the steel tubes; and meanwhile, through ejector rods on the adjusting seats, flexible transition between bounce of the steel tubes and the axis of rotating shafts is achieved when circular seam welding is conducted, since the connection strength brought by spot welding locating can be stronger than flexible fixation exerted by the ejector rods on the steel tubes, the end, far away from the circular seam, of each steel tube can bounce, and then the weld seam is prevented from being pulled or squeezed.