Biomass is a widely distributed and renewable source of carbon. The main objective of this work is to produce an activated carbon from coconut shells with suitable characteristics to separate CO2 from biogas. The textural characterization of the adsorbent has been determined. Pure component adsorption isotherms of CO2 and CH4 at 30, 50 and 70 °C have been measured. Moreover, the performance of the produced activated carbon, as potential adsorbent for CO2 capture from a CO2/CH4 gas mixture has been evaluated under dynamic conditions in a purpose-built fixed-bed setup.