FRANKFURT, Germany — A German teenager missing for more than a year, who was believed to have converted to Islam and run away to join the Islamic State, has been found in Iraq, a state prosecutor said on Saturday.

The girl, identified only as Linda W., 16, in keeping with German privacy laws, is being cared for by employees of the German consulate in Iraq and appears to be in good physical condition, said Lorenz Haase, the prosecutor from Dresden, the capital of the eastern state of Saxony, where the girl is from.

“But even if she is physically O.K., we don’t know how she is doing psychologically, especially because we don’t know what she may have done in the past year,” Mr. Haase said.

His office plans to reopen an investigation that was begun after she was reported to have run away from her home in the town of Pulsnitz last summer, Mr. Haase said. The inquiry, based on suspicion that she was supporting a terrorist organization or plotting an attack against a foreign state, was closed after they failed to identify her whereabouts, he said.