The invention relates to a carton compacting device, in particular to a carton compacting device for environmental protection. The carton compacting device for environmental protection aims to achieve the technical effects of being environmentally friendly, free of pollution, simple in structure and capable of achieving full compacting. The carton compacting device for environmental protection comprises a baffle, a first sliding rail, a first sliding block, a spring, a steel ball, a pressing plate, a guide plate, a pull rod, a moving frame, a compacting box, a right frame, a rack, a support, a second sliding rail and the like. The first sliding block is arranged on the first sliding rail. The baffle is arranged on the left side of the first sliding rail. The baffle is provided with the spring. The steel ball is connected with the upper side of the spring. The moving frame is connected to the first sliding block. The bottom of the left side of the moving frame is provided with a groove. The groove is matched with the steel ball. The carton compacting device for environmental protection achieves the effects of being environmentally friendly, free of pollution and simple in structure and conducting full compacting. The carton compacting device for environmental protection is light, handy, convenient to use and capable of compacting waste cartons to the greatest extent.