This question already has an answer here:
I'm a citizen of Bangladesh holding Bangladeshi Passport. I have a residence permit for both Finland and Sweden. I'll be traveling to Stockholm by Turkish Airlines which has a layover in Istanbul Airport. Do I need to take a visa to go outside of the airport for a short city tour?