The invention relates to the technical field of gluing devices, in particular to a gluing head capable of preventing glue from overflowing and gluing equipment of the gluing head. The gluing head comprises a glue head body, the glue head body is provided with a glue outlet hole and two side flanges, a rear flange protrudes out of the position, located on the rear side of the glue outlet hole, of the glue head body, the two ends of the rear flange are connected with the two side flanges correspondingly to form glue discharging grooves, and glue outlets are located in the glue discharging grooves. The side flanges and the rear flange are arranged near the glue outlets to form the glue discharging grooves, on one hand, glue flowing out of the glue outlets can be discharged in advance, the pressure after the glue flows out is reduced, the side flanges prevent the glue from overflowing towards the two sides so as to prevent edges generated during coating, on the other hand, in the coating process, the glue stored in the glue discharging grooves can also be applied in advance, the rear flange achieves a glue scraping function, the coating thickness of the glue is controlled, the coating uniformity of the glue is maintained, and therefore gluing can be carried out in a groove, and accuracy of the gluing thickness and width is ensured.