Traveling by Train Across Java, Indonesia
We wrote this guide in Spanish and translated it with the help of AI. Leer en castellano

One of the best ways to get around Java is by train, which is safe and cheap. The rail network connects most of the island's cities.
This article has affiliate links: if you book or buy through them, we earn a commission at no extra cost to you.
Traveling by train on the island of Java
To buy your ticket, we recommend doing it online at Tiket, which lets you see schedules and prices and pay by credit card. We used it and it worked perfectly. We had a problem paying with our credit card, so we emailed them and they sorted it out right away.
On Java's trains, there are 2 categories:
- Economy class (Ekonomi Class – Eksekutif Class): It's a fine way to travel, but keep in mind that distances tend to be long, and the seats face each other and don't recline, so legroom is limited.
- Business class (Bisnis Class): Tickets sometimes cost double what economy does (they're not expensive), but the seats recline and you get more legroom, so it's worth spending a little more, especially if you're traveling overnight.
We tried both classes, and we think it's worth spending a little more to travel in Business class.
The train also has a dining car, and every so often a cart comes through selling food and drinks!

Travel with peace of mind with Heymondo travel insurance
Get your travel insurance on Heymondo (opens in a new tab)
This is an affiliate link: if you book or buy through it, we earn a commission at no extra cost to you.
Train from Jakarta to Yogyakarta
The train leaves from Pasar Senen station in Jakarta and arrives at Lempuyangan station in Yogyakarta. (There are several stations in Yogyakarta and this is the most central one, so when you buy your ticket, pay attention to which station it arrives at.)
We did this leg in Executive class and it cost us US$20 each.
Train from Yogyakarta to Surabaya
We did this leg in economy class and it took 7 hours. The hours felt longer, since we could really tell the difference between economy and Executive class. What we did like was traveling surrounded by locals, chatting with them and having a different kind of experience.
The ticket cost us US$7 per person.
- Did a price or a detail change? Tell us at hello@charoandmarcos.com
- Still have a question? Ask us on Instagram (opens in a new tab)
Your next step

Things to Do in Indonesia: A 3-Week Itinerary
Indonesia is one of the largest countries in Southeast Asia, with more than 17,000 islands and plenty of places worth a visit. So when…



