The invention belongs to the field of packaging equipment, and particularly relates to equipment for an optocoupler packaging structure. The equipment comprises a fixing shell, one end of the fixing shell is fixingly connected with the top of a base, a controller is arranged on one side of the fixing shell, a lifting device is fixingly connected to one side of the fixing shell, a movable clamp is fixingly connected to one end, away from the fixing shell, of the lifting device, a fixing clamp is fixingly connected to the middle of the side, close to the fixing shell, of the base, and glass plates are arranged on the two sides of the fixing shell, so that manual use is reduced, the production speed is increased, meanwhile, dislocation of optical couplers can be avoided, and unqualified products are reduced; according to an optocoupler packaging method, a clamping device exerts pressure on a fixed clamp, a glue injector in a glue injection mechanism injects packaging glue into a gap between an optocoupler upper die plate and an optocoupler lower die plate through the pressure, after glue injection is completed, the pressure is maintained for 5-8 seconds, then a controller controls a movable clamp to move upwards, packaging deviation caused by fatigue of workers is avoided, and the packaging is more convenient and faster.