An improved continuous process for converting methane, natural gas, and other hydrocarbon feedstocks into one or more higher hydrocarbons, methanol, amines, or other products comprises continuously cycling through hydrocarbon halogenation, product formation, product separation, and electrolytic regeneration of halogen, optionally using an improved electrolytic cell equipped with an oxygen depolari