followthewiatr
PL
Menu

Getting around Java by train: routes, classes, tickets

Jakarta to Yogyakarta by train is 6 h 30 min and 490,000–570,000 IDR in Eksekutif class. KAI routes, classes, booking channels and the Yogyakarta–Solo KRL guide.

6 min read

The Prambanan temple complex near Yogyakarta — stone towers at the end of a garden path under a cloudy sky

The easiest way to move around Java is the train. The KAI network (Kereta Api Indonesia) links Jakarta, Bandung, Yogyakarta, Solo, Surabaya, Malang and Banyuwangi, and the run from Jakarta to Yogyakarta in Eksekutif class takes 6 h 30 min for 490,000–570,000 IDR. Check the departure station, class and booking channel before choosing a service. Airport trains and local commuter trains have their own ticketing rules, covered separately below.

This guide covers train journeys on Java. Plan the onward trip to Bali or Lombok by ferry or plane, allowing separate time for the transfer.

Route examples and booking rules checked on 26 July 2026. Timetables and fares change; confirm the exact train in the booking channel before paying.

Editorial illustration of an intercity train crossing a simplified tropical landscape with a paper route motif

Timetable from December 1, 2026. KAI has announced a new GAPEKA timetable. Check your date and departure in Access by KAI. For the East Java leg towards Bali, compare stations and services in the Malang to Ketapang train guide. KAI announcement

For travel from December 1, see the Semarang to Yogyakarta Pandawa train for departures in both directions and maps of the stations.

For a direct ride from West Java to the Bali ferry, see Sangkuriang from Bandung to Ketapang for booking steps and the new stops.

Java by train: main routes and prices

Route Class Price (IDR) Time
Jakarta (Gambir) → Yogyakarta (Tugu) Eksekutif 490,000–570,000 6 h 30 min
Jakarta (Pasar Senen) → Yogyakarta Ekonomi 74,000–350,000 ~7 h 30 min
Yogyakarta (Tugu) → Surabaya (Gubeng) Ekonomi/Eksekutif 80,000–320,000 3 h 27 min (fastest)
Surabaya → Banyuwangi (base for Ijen) Ekonomi/Panoramic 56,000–600,000 ~6–7 h
Yogyakarta → Solo Balapan (KRL) Commuter Check C-Access Check your departure
Jakarta (Halim) → Bandung (Whoosh) Kereta Cepat 250,000–600,000 50 min

Yogyakarta to Surabaya runs 15 times a day, so you can almost always find a seat. Bandung is served by the Whoosh high-speed line at up to 350 km/h with 31 departures a day, but it leaves from Halim station on the east side of Jakarta, not Gambir.

Classes: from Ekonomi to Eksekutif

Ekonomi has air conditioning and fixed bench seats reclined to about 90 degrees. It is fine under three hours and tiring beyond that. Bisnis gives seats that recline to roughly 120 degrees. Eksekutif has roomy seats adjustable to 140 degrees, USB sockets and leg rests, and it is what most travellers pick for anything six hours or longer. Above it sit Luxury Eksekutif and a two-berth Suite Class, though those creep toward the price of a flight.

A station detail worth remembering in Jakarta: Eksekutif and Luxury leave from Gambir (GMR) in the centre, while cheaper Ekonomi trains go from Pasar Senen (PSE). They are two separate stations, easy to mix up when you book.

YIA airport to central Yogyakarta

The airport transfer has separate rules from the intercity trains below. Since 17 September 2026, KAI Commuter operates Commuter Line Bandara YIA. It lists C-Access, Access by KAI, airport-train.kci.id and station vending machines, with reservations up to 7 days ahead. Do not apply the intercity D-45 window or other channels' account restrictions to this journey. See our YIA airport train to Yogyakarta/Tugu guide for choosing a departure, current booking channels and a station map. Operator announcement.

How to buy a ticket as a foreigner

Check the current requirements of the channel you choose. The examples below are starting points for comparing intercity tickets, not a guarantee that every foreign phone number or bank card will work. Do not transfer these account requirements to the local KRL.

Channel Foreign cards Note
tiket.com/en yes English interface, easiest for foreigners
12go.asia yes Check the ticket or voucher issued and any fees
Traveloka yes Check the offer and rules for your chosen service
Access by KAI (app) Check at checkout Verify current account requirements and payment support
Indomaret / Alfamart yes (cash) Print your boarding pass at least 10 min before departure

Booking opens 45 days before departure (D-45), and the most popular trains (Taksaka from Jakarta to Yogyakarta, Sancaka from Yogyakarta to Surabaya) vanish within hours. Buy 7–14 days out. Since 2025 a QR e-ticket on your phone is enough; no paper needed. You give a passport number when booking, so carry the passport on the train for the occasional check.

Travelling between Surabaya and Malang? The local-train guide explains Penataran and Dhoho's opposite directions, the local booking window and which station to choose.

Yogyakarta–Solo KRL: a separate commuter service

For Solo Balapan, look for Commuter Line Yogyakarta–Palur, not Prameks: Prameks runs towards Kutoarjo. Check the current departure, stopping station and fare in C-Access rather than using an old timetable screenshot.

The operator lists KMT, supported bank e-money cards, GoTransit and QRIS Tap. These are different payment methods. QRIS Tap requires a compatible app and device; it does not mean every foreign contactless bank card will work. The current KMT page lists IDR 30,000 for a regular card and a minimum top-up of IDR 10,000. Do not assume that the card price includes credit. KMT information.

See the Yogyakarta–Solo KRL guide and station map for choosing a station, paying and planning a day around Pasar Gede. This commuter section was checked on 30 October 2026; the intercity price examples above retain their July reference date.

On the train: what to pack and expect

The air conditioning on KAI trains can be brutal, so a hoodie earns its place even in the heat. The official baggage limit is 20 kg, 4 pieces, max 70×48×30 cm per person; a big suitcase may not fit the Ekonomi rack, so a backpack is easier. Eksekutif and Luxury have a meal cart at 15,000–30,000 IDR a dish. Ekonomi can run 15–45 minutes late, while Eksekutif usually keeps time. One date to dodge if you can: around Lebaran (Eid al-Fitr), tickets sell out weeks ahead and prices jump. When Lebaran falls and what the rest of the weather-and-holiday calendar looks like, month by month, is in When to go to Java.

Where the rails take you

The same line delivers you to Java's two loudest volcanoes. From Surabaya you ride to Banyuwangi, the base for a night hike to the blue fire of Kawah Ijen. And to catch sunrise on Bromo without a tour, you pair the train with a local bus. Continue to Bali by ferry from Ketapang to Gilimanuk. Updated 2 November 2026: ASDP says to buy through Ferizy before reaching the port, including foot passengers; the earlier advice that no booking was needed is outdated. Check the fare and port-entry slot for your date. See the Java–Bali ferry guide: Ferizy, check-in and time zones. ASDP source.

The full day-by-day route is in the guide

This post explains the train system itself. Before flying, check the current Indonesia visa on arrival and e-VOA rules. The full overland across Java, with connection times, ticket prices and a daily budget, is in the East Java guide. And if you're still shaping a first trip, start with the free 5-day Java plan: the route, prices and stays, step by step.

FAQ

What is the best way to get around Java?

KAI trains. The network links Jakarta, Bandung, Yogyakarta, Solo, Surabaya, Malang and Banyuwangi. Jakarta to Yogyakarta is 6 h 30 min in Eksekutif class, with 19 departures a day. This guide covers Java; plan the onward journey to Bali or Lombok by ferry or plane.

How do I buy a KAI ticket as a foreigner?

Compare the operator and reseller booking channels for your exact train. Account verification and payment support vary; check passport details, fees and the final fare before paying. YIA airport trains and the Yogyakarta–Palur KRL have separate rules below.

How much is the train from Jakarta to Yogyakarta?

Eksekutif from Gambir station: 490,000–570,000 IDR, about 6 h 30 min. Ekonomi from Pasar Senen: 74,000–350,000 IDR, about 7 h 30 min. These are two different stations, so check which one your train leaves from when you book.

How do I take the Yogyakarta–Solo KRL?

Use Commuter Line Yogyakarta–Palur, which serves Solo Balapan. Check today's departure and fare in C-Access. KMT, supported bank e-money, GoTransit and QRIS Tap are separate payment options; check compatibility before relying on a phone.

The free Java starter, straight to your inbox

Type in your email and the free “5 days on Java” plan (PDF) lands in your inbox: the route, train times and the budget. No spam, unsubscribe anytime.

The guide behind this route

Whole Java

Two volumes, 45 chapters in total. Volume 1 is available now; Volume 2 is a preorder with no announced release date.

See it in the shop

Free plan: 5 days on Java

All the times, prices and names are in the full PDF plan — route, budget, mistakes. One email, the plan lands right away.

Get the plan (PDF)