The present invention provides a gas generator and comprises an electrolytic cell, a mixing chamber, and an atomizing chamber. The electrolytic cell is for electrolyzing electrolyzed water to generate a gas mixture of hydrogen and oxygen. The mixing chamber is connected to the electrolytic cell for receiving the gas mixture of hydrogen and oxygen and mixing with an atomizing gas to generate a healthy gas. The atomizing chamber is connected to the mixing chamber for generating the atomizing gas. Wherein the maximum bore diameter of the mixing chamber is smaller than the maximum bore diameter of the atomizing chamber. The invention can reduce the possibility of the gas explosion by using the smaller capacity of the mixing chamber and setting the anti-static device.本發明提供一種氣體產生器,包含電解槽、混合反應室以及霧化室。電解槽用以電解容置其內之含有電解質的電解水而產生氫氧混合氣體。混合反應室連接於電解槽,用以接收氫氧混合氣體及霧化氣體並混合形成保健氣體。霧化室連接混合反應室,用以產生霧化氣體後送至混合反應室。其中,混合反應室之最大孔徑係小於霧化室之最大孔徑。本發明氣體產生器藉由縮小混合反應室容量及裝設防靜電裝置,以降低氣體產生器內氣爆之可能性。