The invention relates to the technical field of circuit board dispensing, in particular to a circuit board glue printing device capable of automatically overturning. The device comprises a base and alifting mechanism, and the lifting mechanism comprises a lifting plate and a jacking assembly. The device further comprises a controller, a turnover mechanism and a dispensing mechanism, the turnovermechanism comprises a clamping assembly, a driving assembly and two carrying frames, and the dispensing mechanism comprises a transverse sliding assembly, a longitudinal sliding assembly and a glue injection assembly. A machining groove is formed in the lifting plate, the transverse sliding assembly is arranged at the top of the machining groove, and the longitudinal sliding assembly is arranged at the top of the transverse sliding assembly. The glue injection assembly is fixedly arranged at the top of the transverse sliding assembly, and the jacking assembly, the clamping assembly, the driving assembly, the transverse sliding assembly, the longitudinal sliding assembly and the glue injection assembly are all electrically connected with the controller. According to the circuit board glue printing device capable of automatically overturning and a working method, manual overturning is not needed, the overturning speed is high, meanwhile, the circuit board glue printing device can have arapid drying function and can guarantee the product quality.