The decision was taken after Ivory Coast President Alassane Ouattara called for "all urgent measures" to end slave trading and other migrant abuses in Libya at an EU- Africa summit in Abidjan.
The leaders of Libya, France, Germany, Chad, Niger and other countries "decided on an extreme emergency operation to evacuate from Libya those who want to be," Macron told reporters after their talks on the sidelines of the summit.
"Libya restated its agreement to identify the camps where barbaric scenes have been identified," Macron said, adding Libya's UN-backed President "Sarraj gave his agreement that access be assured."
"This work will be carried out in the next few days, in line with the countries of origin," he said.