There’s a website that you can use: ebilet.tcddtasimacilik.gov.tr/ TCDD (Turkish Railways) also have a iOS or Android app for online booking. Another option is going to a train station and buying it directly from the counter. But keep in mind that there might not be any available seat for last minute purchases…