Various innovative chemical sensors have been developed in recent years to sense dangerous substances in air and trace biomarkers in breath. However, in order to solve real world problems, the sensors must be equipped with efficient sample conditioning that can, e.g., control the humidity, which is much less discussed in literatures. To meet the demand, a miniaturized mouthpiece was developed for personal breath analyzers. A key function of the mouthpiece is to condition the humidity in real breath samples without changing the analyte concentrations and introducing substantial backpressure, which is achieved with optimized packing of desiccant particles. Numerical simulations were carried out to determine the performance of the mouthpiece in terms of various controllable parameters, such as the size, density and geometry of the packing. Mouthpieces with different configurations were built and tested, and the experimental data validated the simulation findings. A mouthpiece with optimized performance reducing relative humidity from 95% (27,000 ppmV) to 29% (8000 ppmV) whereas retaining 92% nitric oxide (50ppbV to 46ppbV) was built and integrated into a handheld exhaled nitric oxide sensor, and the performance of exhaled nitric oxide measurement was in good agreement with the gold standard chemiluminescence technique. Acetone, carbon dioxide, nitric oxide, oxygen and ammonia samples were also measured after passing through the desiccant mouthpiece using commercial sensors to examine wide applicability of this breath conditioning approach.