Judges found Kreshnik Berisha, whose parents are from Kosovo, guilty of membership and activity for a foreign terrorist organization, the Frankfurt regional court said in a statement.
Berisha, a Muslim who once played for a Jewish football club, turned to radical Islam three years ago. He traveled to the Turkish city of Istanbul in July 2013, where he and six others were picked up by Islamic State recruiters and taken to Syria, the court said.
While in Syria he maintained contact with his family in Germany and agreed to their pleas for him to return home five months later. Berisha was arrested at Frankfurt Airport in December 2013.
Judges said Berisha's sentence took account of the fact that he had confessed to his actions and testified during the trial.
The verdict can be appealed.
