This question already has an answer here:
I am a Greek national and I will be traveling from Greece to Scotland. I booked my tickets with Turkish airlines. Both flights (to Scotland and back from Scotland) connect at Ataturk Airport (IST) for a few hours.
Will I need a visa for Turkey? Or is a passport or European identity card enough?