The invention relates to a gluing device and especially relates to a gluing device for an electronic component. The technical problem to be solved by the invention is to provide the gluing device for the electronic component, which has the advantages of simple operation, convenience in use, capability of accurately aligning with a gluing point of the electronic component in a gluing process, good gluing effect and high working efficiency. For solving the technical problem, the gluing device for the electronic component, provided by the invention, comprises a base plate, an L-shaped support plate, a left and right moving device, a pressure regulating valve, a vertical plate, a loading plate, a slide block, an up and down moving device, a glue filling drum, a gluing needle cylinder and a cover, wherein the L-shaped support plate is welded at the left end of the top of the base plate; the vertical plate is vertically welded in the middle of the top of the base plate; an opening is formed in the lower part of the vertical plate; and slide slots are symmetrically formed in the base plate from front to back. The gluing device for the electronic component, provided by the invention, has the advantages of simple operation, convenience in use and capability of accurately aligning with the gluing point of the electronic component in the gluing process.