If you're flying Turkish Airlines, they offer
these free tours for layovers of 6 hours or more. I think you'll just miss the noon tour, though.
Turkish is a great airline, but everything connects through Istanbul, often with long layovers. For layovers over 9 (economy) or 12 (business) hours, there are also
free hotel rooms.