Witnesses said flames and thick plumes of smoke rose from the pipeline, describing the scene from vantage points in and around the city of al-Arish.
Islamic State claimed responsibility for the blast on its Telegram channel without providing evidence.
North Sinai local authorities said in a statement the fire had been extinguished and it had not affected gas supplies.
The scale of the damage was not immediately clear.