A simple and efficient flow-based technique is reported for the catalytic deuteration of several model nitrogen-containing heterocyclic compounds which are important building blocks of pharmacologically active materials. A continuous flow reactor was used in combination with on-demand pressure-controlled electrolytic D2 production. The D2 source was D2O, the consumption of which was very low. The experimental set-up allows the fine-tuning of pressure, temperature, and flow rate so as to determine the optimal conditions for the deuteration reactions. The described procedure lacks most of the drawbacks of the conventional batch deuteration techniques, and additionally is highly selective and reproducible.