Aiming at designing ionic liquids for the purification of natural gas, the solubility of methane in ionic liquids is investigated here through the measurement of the solubilities of methane in four ionic liquids (ILs), in a wide range of molar fractions, temperature and pressures. With the exception of the phosphonium-based IL, which behaves as an almost ideal solution, the other ionic liquids show strong positive deviations from ideality, resulting from non-favorable interactions between CH 4 and the ILs. The results indicate that the non-ideality of the solution increases, and the solubility decreases, with the polarity of the ionic liquid. The effect of the ionic liquid polarity on the CO 2 /CH 4 and H 2 S/CH 4 selectivities is evaluated here. The ionic liquids studied here present the largest CO 2 /CH 4 and H 2 S/CH 4 selectivities ever reported. The selectivity models previously proposed in the literature are tested against these new experimental data and are shown to fail. Furthermore, it is shown that describing the ILs' polarity using the Kamlet-Taft parameters, the CO 2 /CH 4 and H 2 S/CH 4 selectivities correlate well with the b-parameter providing a key to the design of ionic liquids with enhanced selectivities.