A new pellet injector based on a piston-type extruder and a guide tube for magnetic high-field side (HFS) injection has been developed for HL-2A. Preliminary experimental results have been obtained by pellet injection. In this paper, the mechanisms of the pellet injector and the guide tube for HFS injection are described. Experimental results of pellet edge-localized mode triggering and HFS pellet injection are also presented.