A portable oxygen generator comprises an air pump, a molecular tube and a molecular seat, the molecular tube is detachably fixed on the side wall of the molecular seat, the air pump is disposed at the lower part of the molecular seat. An air filter bucket, an oxygen storage bucket and an exhaust silencing bucket are disposed inside the molecular seat, the air filter bucket is provided with an air inlet communicated with the outside air. An air channel, an oxygen channel and an exhaust channel are disposed inside the molecular seat, the air channel is respectively communicated with the air filter bucket, the air pump and the molecular tube, the oxygen channel is respectively communicated with the molecular tube and the oxygen storage bucket, the exhaust channel is respectively communicated with the molecular tube and the exhaust silencing bucket, the air channel, the oxygen channel and the exhaust channel are respectively connected with a solenoid valve.