Due to the heavy reliance of people on the limited fossil fuel as energy resources, global warming has increased to severe levels due to huge CO2 emission into the atmosphere. To mitigate this situation, a green method is presented here for the conversion of CO2/H2O into sustainable hydrocarbon fuels via electrolysis in eutectic molten salts ((KCl-LiCl; 41:59 mol%), (LiOH-NaOH; 27:73 mol%), (KOH-NaOH; 50:50 mol%), (Li2CO3-Na2CO3-K2CO3; 43.5:31.5:25 mol%)) at the conditions of 1.5-2 V and 225-475 o C depending upon molten electrolyte used. Gas chromatography (GC) and GC-MS techniques were employed to analyse the content of gaseous products. The electrolysis results in hydrocarbon production with maximum 59.30, 87.70 and 99% faraday efficiency in case of molten chloride, molten hydroxide and molten carbonate electrolytes under the temperature of 375, 275 and 425 o C 2 respectively. The Gas chromatography (GC) with FID and TCD detectors and GC-MS analysis confirmed that the H2 and CH4 were the main products in case of molten chlorides and hydroxides at 2 V applied voltage while longer hydrocarbons (>C1) were obtained only in molten carbonates at 1.5 V. Through this manner, electricity is transformed into chemical energy. The heating values obtained from the produced hydrocarbon fuels are satisfactory for further application. The practice of molten salts could be a promising and encouraging technology for further fundamental investigation for sustainable hydrocarbon fuel formation with more product concentrations due to its fast-electrolytic conversion rate without the use of catalyst.