Non-cryogenic separation of natural gas using membranes, hydrocarbon removal and gas absorber units. The products obtained are rare gases, hydrocarbons and purified carbon dioxide.