Germany is slashing staff levels at its embassy in Kabul to an "absolute minimum", Foreign Minister Heiko Maas said on Friday as Taliban militants advance on the Afghan capital.
Maas told reporters the evacuation would be carried out "in the coming days" following similar moves by the US and Britain.
"We will send a crisis support team to Kabul to help us boost security precautions" during the withdrawal, Maas said, adding that the embassy would "remain able to function".
Maas said he had spoken overnight about the steps with US Secretary of State Antony Blinken ahead of a crisis cell meeting at his ministry early on Friday.
"We have been preparing for weeks for this situation we are now confronted with," he said.
The German minister said that already scheduled charter flights would be moved forward to take both German embassy staff "as well as local staff who are still in Afghanistan" to Germany.
The ministry earlier on Friday estimated its staff levels at the Kabul embassy in the "high double digits".
Maas said that the Afghan personnel would be issued visas on their arrival in Germany "to accelerate their departure".
He renewed a call made on Thursday by his ministry for all German citizens still in Afghanistan to leave the country immediately.
"We will coordinate all further measures with our international partners in the coming days," he said.
The evacuation orders by NATO allies came as the Taliban took control of Kandahar -- Afghanistan's second-biggest city -- in the insurgency's heartland, leaving only Kabul and pockets of other territories in government hands.
The first wave of the offensive was launched in early May after the United States and its partners all but withdrew their forces from Afghanistan, with President Joe Biden determined to end two decades of war by September 11.
NATO envoys were holding an urgent meeting on Friday afternoon about the deteriorating situation, diplomatic and official sources told AFP.