A PSA nitrogen generator uses two vessels filled with carbon molecular sieve. Clean, dry compressed air passes through one vessel; oxygen and other small molecules are adsorbed faster than nitrogen, so nitrogen-rich gas flows out. Before the sieve saturates, the vessels swap and the first is depressurised to release the adsorbed oxygen.
PSA gives selectable purity on site, replacing cylinders or liquid nitrogen for packaging, blanketing, electronics and heat treatment. Manufacturers quote purities up to around 99.999%, but higher purity costs more air and therefore more energy per Nm³ of nitrogen.
Practical note: specify the purity the process actually needs. Feed-air quality decides sieve life; oil and liquid water ruin it, so treat the feed with appropriate filtration, often including activated carbon, and dry it.