The invention relates to the field of production of electronic components, in particular to a positioning device for an electronic component. The positioning device comprises a machine frame, a conveying mechanism, a cross beam and two positioning cutting mechanisms, wherein the conveying mechanism comprises a driving roller, a driven roller and a conveying belt; an intermittent gear is coaxiallyconnected on the driving roller, and a rack meshed with the intermittent gear is arranged on the machine frame in a mode of vertically sliding; a horizontal slideway is arranged in the cross beam, anda through hole for enabling a pin to pass through is vertically formed in the cross beam; each positioning cutting mechanism comprises a positioning block and two cutting units, and each cutting unitcomprises a sliding block, a tension spring, a cutting knife and a stay cord, the sliding block is arranged in the slideway in a sliding mode, one end of the tension spring is fixedly connected withthe cross beam, the free end of the tension spring is fixedly connected with the sliding block, the cutting knife is obliquely arranged on the sliding block, the positioning block is fixedly connectedwith the sliding block, one end of the stay cord is fixedly connected with the sliding block, the other end of the stay cord is fixedly connected with the rack, and a scraper is arranged on the staycord. According to the technical scheme, the positioning device can automatically position the electronic component and continuously weld the electronic component.