This work aims at developing and validating under laboratory-controlled conditions a gas mixture generation device designed for easy on-site or laboratory calibration of analytical instruments dedicated to air monitoring, such as analysers or sensors. This portable device, which has been validated for formaldehyde, is compact and is based on the diffusion of liquid formaldehyde through a short microporous interface with an air stream to reach non-Henry equilibrium gas–liquid dynamics. The geometry of the temperature-controlled assembly has been optimised to allow easy change of the aqueous solution, keeping the microporous tube straight. The formaldehyde generator has been coupled to an on-line formaldehyde analyser to monitor the gas concentration generated as a function of the liquid formaldehyde concentration, the temperature, the air gas flow rate, and the microporous tube length. Our experimental results show that the generated gaseous formaldehyde concentration increase linearly between 10 and 1740 µg m−3 with that of the aqueous solution ranging between 0 and 200 mg L−1 for all the gas flow rates studied, namely 25, 50 and 100 mL min−1. The generated gas phase concentration also increases with increasing temperature according to Henry’s law and with increasing the gas–liquid contact time either by reducing the gas flow rate from 100 to 25 mL min−1 or increasing the microporous tube length from 3.5 to 14 cm. Finally, the performances of this modular formaldehyde generator are compared and discussed with those reported in the scientific literature or commercialised by manufacturers. The technique developed here is the only one allowing to operate with a low flow rate such as 25 to 100 mL min−1 while generating a wide range of concentrations (10–1000 µg m−3) with very good accuracy.