US President Donald Trump says he would meet Iranian President Hassan Rouhani under the "correct" circumstances.

Trump made the remark during a joint news conference with French President Emmanuel Macron on Monday, following the Group of Seven summit in Biarritz, southwestern France.

Macron said he hopes to realize a summit between Trump and Rouhani "within weeks." He said Rouhani is willing to meet.

The French president said progress was made on the sidelines of the G7 summit in separate talks with Trump and Iranian Foreign Minister Mohammad Javad Zarif.

Tensions between the US and Iran remain high since Trump pulled out of the international nuclear agreement last year and re-imposed sanctions.

Macron is believed to have asked Trump to ease the sanctions, including an oil embargo that Iran wants lifted.

Trump has not shown his hand since his meeting with Macron.

NHK