Turkish Government has a website for electronic visa applications called eVisa. An e-Visa is an official document permitting entry into and travel within Turkey. The e-Visa is an alternative to visas issued at Turkish missions and at the ports of entry.
You can learn more about the details and obtain your visa at the government’s web site by clicking the following link:
You can also obtain it when you land in Istanbul at the airport.