The invention relates to a fuel gas type free piston linear engine. The fuel gas type free piston linear engine comprises an I-shaped piston and a cylinder body, wherein the cylinder body is symmetrically provided with a left air inlet cavity and a right air inlet cavity as well as a left exhaust gas cavity and a right exhaust gas cavity; the I-shaped piston comprises a compression piston, a leftair inlet piston, a right air inlet piston, a left exhaust piston and a right exhaust piston; and the I-shaped piston is arranged in the cylinder body; the full air intake is guaranteed through differential pressure air intake, and the sufficient air exhaust is guaranteed through differential pressure air exhaust; the air intake, compression, combustion and expansion process is continuously and alternately realized, a magnet fixed on the piston performs horizontal reciprocating motion along with the I-shaped piston, magnetic force line cutting is realized between the magnet and a power generation coil, and power generation is realized. The fuel gas type free piston linear engine is simple in design and layout structure and is suitable for miniaturized and portable development.