The invention discloses a dual-purpose portable closing machine of single-needle single-line and double-needles double-lines, which comprises a bearded needle mechanism, a feeding mechanism, a needle rod mechanism and a line passing mechanism, wherein a bearded needle frame, a left bearded needle, a right bearded needle, feeding teeth and a tooth frame are respectively and directly connected for transmission by a main shaft. According to the characteristics of the dual needles, the right bearded needle, the left bearded needle and drawing lines, the invention uses a method of the bearded needles travelling left and right to reach the stitches of single-needle single-line and double-needles double-lines, and keeps the function of single needle single line not affected. The invention can realize the single line stitch when a line is threaded, and realize the double line stitch when two lines are threaded. Two functions can be freely chosen to realize the function of one machine two purposes. The invention has the advantages of simple structure, reasonable distribution, stable performance and convenient operation, and can be widely used for closing pocket openings of gunnysacks, woven bags, paper-plastic compound bags contained goods in factories, wharfs, warehouses and the like.