In feedstocks containing high ammonia (NH3) concentration, removal of the NH3 during the anaerobic digestion (AD) process can improve AD process performance. In the present study, the effect of NH3 removal using gas-permeable membrane (GPM) technology on AD process performance and biogas production was investigated using swine manure feedstock. Batch and semi-continuous AD experiments were carried out under mesophilic conditions. In the reactor with NH3 recovery, total ammonia nitrogen (TAN) concentration was reduced 28% in batch experiments and 23% on average in the semicontinuous experiment compared with the reactor without NH3 recovery. Free ammonia (FA) concentrations were also decreased by 23% and 4% on average in batch and semicontinuous experiments, respectively. These reductions in TAN and FA by GPM system positively impacted both the quality and quantity of the biogas produced by AD of swine manure. Specifically, the specific methane yield increased 9% in the batch experiment and 17% on average in the semicontinuous experiment. Furthermore, higher percentages of methane in biogas were obtained during AD retrofitted with GPM system, 24% increase in the batch experiment and 11% on average in the semicontinuous experiment (range 8.3-13.6%). Simultaneously, a uniform TAN recovery rate of 6.7 g N TAN per m2 of membrane and per day was obtained for the 205 days of semicontinuous operation; ammonia nitrogen was recovered in the form of ammonium sulphate solution. Therefore, the AD-GPM configuration produces beneficial results on biogas quantity and quality while recovering ammonia nitrogen in form of ammonium sulphate.