KUALA LUMPUR, Oct 24 (Reuters) - Singapore's City Energy and Malaysian renewable energy firm Gentari have signed an agreement to study the feasibility of building a hydrogen pipeline from Malaysia to Singapore, the companies said on Tuesday.

City Energy and Gentari said the study will be conducted over a period of 12 months, after which both companies will determine the way forward in executing an engineering design agreement.

Any pipeline that will be built will supply hydrogen to City Energy's Senoko Gasworks plant in northern Singapore, the companies said in a joint statement.

City Energy, a wholly-owned subsidiary of Keppel Infrastructure Trust, is Singapore's sole producer and provider of piped town gas. Gentari is owned by Malaysian state-run energy giant Petronas.

Singapore has been importing natural gas from Malaysia since 1991, through a 2,623-kilometre (1,630 miles) long pipeline owned and operated by Gentari's sister company, Petronas Gas Berhad.

Both Singapore and Malaysia have set targets to achieve net zero emissions by 2050, with hydrogen seen as a key alternative in transitioning to clean energy sources for both countries.

(Reporting by A. Ananthalakshmi and Danial Azhar; Editing by Kanupriya Kapoor)