This nitrogen gas generator produces a continuous, on-demand supply of nitrogen using a high-efficiency filtration system and membrane separation technology. It pre-treats compressed air to remove contaminants down to 0.01 micron and subsequently hollow fiber membranes separate the clean air into a concentrated nitrogen output stream and an oxygen enriched permeate stream, which is vented from the system.