This question already has an answer here:
I am a US citizen traveling from Kathmandu to US through Istanbul, Turkey. I have a 19 hour layover in Istanbul. Can I visit the area near the airport or stay in a near-by hotel while in transit? Are there visa requirements to leave and re-enter the airport during this 19 hour layover?