To decrease the use of fossil fuels and face the energetic demand, the integration of renewable energy is a necessary step. Part of this renewable energy can be supplied by the production of electricity from photovoltaic panels and windfarms. The massive use of these intermittent energies will lead to overproduction periods, and there is consequently a need to convert this surplus of electricity into a storable form of energy. Power-to-gas (PtG) technology consists in using electricity to convert water into hydrogen by electrolysis, and then to synthetize methane from carbon dioxide and hydrogen. Techno-economic and Life Cycle Assessment of methane production via the combination of anaerobic digestion and PtG technology have been applied to sewage sludge valorization. Process studies and equipment design have been addressed considering already available technologies. Sensitivity analyses have been done on biogas upgrading technologies, electricity prices, annual operation time and composition of the electricity mix with also a comparison between PtG and direct injection. It appears that the more the electricity is expensive, the longer the operation time of the methanation process must be to be competitive with injection of methane from biogas. Reduction of electricity consumption of the electrolysis step decreases production costs. Even if the current context does not feature adapted conditions to ensure an economically viable chain, the evolution of the energetic context in the next few years as well as the expected technological improvements will contribute to overall cost reduction. From an environmental point of view, continuous PtG generates more greenhouse gases than direct injection, but intermittent operation with use of renewable electricity can significantly reduce GHG emissions. From an endpoint impacts perspective, impact from continuous PtG are higher than biogas upgrading, but much lower than fossil energy. Future development of low electricity consumption of the electrolysis process, and integration of renewable credits from CO2 valorization can increase the competitiveness of this technology. (C) 2016 Published by Elsevier Ltd.