The invention discloses a forging device with a real-time automatic cleaning function, which comprises a supporting rack, a limiting device, a mounting clamping plate, a transmission mechanism, a guide chute, a connecting motor, a supporting baffle, a limiting sliding plate, a forging device, a connecting device, a positioning belt pulley, a cleaning device, a connecting rack, a toothed belt and a guide mechanism, the upper end face of the supporting rack is symmetrically and fixedly connected with supporting baffles used for supporting. When the connecting blank is circularly forged, the cleaning device can be matched with the forging device for forging the connecting blank, so that the forged position is quickly cleaned in real time, and the supporting rack at the upper part of the forged connecting blank can be always kept clean; and therefore, the forging efficiency of the connecting blank and the cleanliness of the upper environment of the forging platform are improved, and follow-up accurate regulation and control over various devices are facilitated.