Ten days in Java: three cities on one railway, none of them alike
Three nights in the capital, four in the sultan's city for Borobudur and Prambanan, two at the eastern end, joined by two long daytime trains.
- Length
- 10 days, 9 nights
- Where you stay
- Jakarta, Yogyakarta, Surabaya
- Places
- 22 across 10 days

Java holds about 150 million people on an island smaller than England, which makes it the most crowded large island on earth and also the easiest one to cross. A railway has run the length of it since the Dutch built it, and it still does the job: air-conditioned, punctual, cheap, and a great deal more pleasant than the toll road beside it.
The three cities on the line are three different countries. Jakarta is a thirty-million-person capital with a Dutch town hall at its northern end and a gold-tipped obelisk at its middle. Yogyakarta is a small sultanate with a court, a market and the two greatest monuments in Southeast Asia within an hour of it. Surabaya, at the eastern end, is a port that fought the Dutch to a standstill in 1945 and has been getting on with business ever since.
Book the trains a few days ahead in the app or at any station counter, take the executive class, and put both long journeys in daylight: the run down to Yogyakarta crosses rice country and volcano flanks for eight hours and is one of the good train rides in Asia.
Highlights
- The old Batavia square, the puppet museum and the schooners still working at Sunda Kelapa
- Borobudur at opening time, and the two smaller temples aligned on the road back
- The kraton and the tunnels under the water castle in Yogyakarta
- The Trimurti towers at Prambanan and sunset from the ridge at Ratu Boko
- A Dutch cigarette factory, a Soviet submarine and the oldest mosque in East Java, all in Surabaya
Where to stay

Jakarta, three nights
Jakarta rewards a plan and punishes wandering. The historic core is Kota Tua in the north, around the old Dutch city hall; the civic centre is Merdeka Square in the middle, with the monument, the national museum, the cathedral and the largest mosque in Southeast Asia standing across the road from each other; the modern city is south of that and is mostly offices and malls.
Stay near a metro station in the Menteng or Sudirman area rather than out by the airport, and treat traffic as the deciding factor in every plan. Two things in a day is realistic. Three is optimistic.
_-_img_01.jpg%3Fwidth%3D1200)
Yogyakarta, four nights
By train from Jakarta, Gambir railway station to Yogyakarta railway station, about 433 km.
Jogja is the reason most people come to Java at all. A walled palace with a working court sits in the middle of it, batik and silver are still made in the surrounding kampung, and the two great temple fields lie an hour away on opposite sides of the city.
Four nights gives a full day to each temple site, a day in the old royal quarter, and an evening on Malioboro among the street carts. Stay near the kraton or in Prawirotaman, and hire a car with a driver for both temple days.

Surabaya, two nights
By train from Yogyakarta, Yogyakarta railway station to Surabaya Gubeng railway station, about 266 km.
Surabaya is a working port and Indonesia's second city, and it does not court visitors. What it has is the best preserved Dutch commercial quarter in the country, an Arab quarter around a mosque built in 1421, and the memory of November 1945, when the city fought the returning colonial army street by street and lost thousands of people doing it.
Two nights is right: an arrival afternoon, a full day in the old town, and a flight out from Juanda. It is also the usual jumping-off point for Mount Bromo, if you would rather turn this into a twelve-day trip.
Day by day
Day 1 in Jakarta
Merdeka Square: the monument, the mosque and the cathedral
Everything on the first afternoon stands around one enormous square, which makes it the only part of Jakarta you can do on foot. The obelisk in the middle is the national monument, and the queue for the lift to the observation deck is long enough that most people settle for the dioramas in the basement.
Across the road on the north-east corner, the biggest mosque in Southeast Asia faces a neo-gothic cathedral, and the two share a car park and, at religious holidays, each other's overflow. It was built that way on purpose by Sukarno, and it is the single most quietly impressive thing in the city.
- 14:00
The National Monument
HistoricA 137 metre marble obelisk with a gold flame on top, commissioned by Sukarno in 1961 and finished in 1975; the basement dioramas tell the independence war and the top has the view, if you can face the queue.
_(cropped).jpg%3Fwidth%3D500)
- 16:00
Istiqlal Mosque
ReligiousThe largest mosque in Southeast Asia, designed by a Christian architect and deliberately sited facing the cathedral; robes are lent at the door and a guide will walk you round for a tip agreed in advance.

- 17:30
Jakarta Cathedral
ReligiousA century-old neo-gothic cathedral with twin iron spires directly across the road from the mosque, and a small museum on the upper floor.
_-_img_01.jpg%3Fwidth%3D500)
With more time: The square itself is a park with a musical fountain on the east side in the evening and joggers on it from six in the morning. For dinner, the street food alleys around Sabang and the Menteng restaurants are ten minutes south by app taxi.
Day 2 in Jakarta
Kota Tua, the puppets and the schooners at Sunda Kelapa
North to old Batavia, where the Dutch laid out a canal town in the seventeenth century and then abandoned it as a fever trap. What is left is a cobbled square ringed by the old city hall, two museums and a cafe in a merchant's house, with bicycles for hire and a great deal of noise.
The city hall is now the history museum, and its cells underneath held Prince Diponegoro before they shipped him to Sulawesi. The puppet museum on the west side is small and much better than it sounds: shadow puppets are how Javanese stories have been told for a thousand years, and the staff will explain the difference between the leather ones and the wooden ones if you ask.
Then twenty minutes north to the old harbour, which is still working. Wooden Bugis schooners load timber at the quay by hand, exactly as they have for generations, and you can walk the length of it.
- 09:00
Jakarta History Museum
CultureThe Dutch city hall of 1710, later a prison, now the city museum: colonial furniture, stones inscribed in the fifth century, and the Jagur cannon in the back yard.
_Fatahillah_Square_(2025)_-_img_02.jpg%3Fwidth%3D500)
- 11:00
Puppet Museum
CultureWayang from all over Java and beyond, leather and wooden, with a shadow-puppet performance on Sunday mornings; ask a member of staff to walk you round, because the labels do not do it.
_-_img_01.jpg%3Fwidth%3D500)
- 12:30
Lunch on the old square
EatThe cafes around Fatahillah square do nasi goreng and cold drinks in colonial dining rooms; the one in the old merchant's house is the pleasant one.
- 14:30
Sunda Kelapa Port
LandmarkThe harbour Jakarta grew from, taken from the Portuguese in 1527 and still loading cargo into wooden phinisi schooners by hand along a kilometre of quay.

With more time: The maritime museum sits in the Dutch East India Company's old spice warehouses five minutes from the quay, and the watchtower next to it is climbable. Kota Tua is at its best on a weekday: on Sundays half of Jakarta comes to picnic on the square.
Day 3 in Jakarta
The national collection, and every province in one park
The national museum on the west side of Merdeka Square is the best single introduction to Indonesia there is: Hindu stone from Java, bronzes, textiles from a hundred islands and a treasury of gold. Give it two hours and start upstairs.
The afternoon is the strange, wonderful park the president's wife built in the 1970s, with a full-size traditional house from every province standing in a hundred hectares of garden. It sounds like a theme park and is in fact the fastest way to understand how little Java has in common with Sumba or Papua. It is well out to the south-east, so go after lunch and let the traffic settle.
- 09:30
National Museum
CultureHindu and Buddhist sculpture, prehistory, textiles and a gold room that shuts an hour before the rest; the elephant out front was a gift from the king of Siam in 1871.
_-_img_07.jpg%3Fwidth%3D500)
- 12:30
Lunch before the drive out
EatEat around the square or in Menteng before heading south-east; the park's own food is functional at best.
- 14:00
Taman Mini Indonesia Indah
LeisureA hundred hectares with a pavilion for every province, each a real building in its regional style; get round it by cable car or the little train rather than on foot.
_-_img_01.jpg%3Fwidth%3D500)
With more time: If the park sounds like too much, the Betawi cultural village on a lake in the far south does the local version instead, with music and dance taught to children on Sunday mornings and food stalls all weekend. Either way, get back into the centre before the evening rush or budget two hours for it.
Day 4 in Yogyakarta
The train south, then Malioboro after dark
The train leaves Gambir in the morning and takes most of the day, running down the north coast plain and then inland through terraced country with volcanoes standing over it. Buy a window seat on the left.
You arrive in the middle of Yogyakarta in the late afternoon with nothing to do but walk, which is exactly right. The monument at the top of the main street is the city's crossing point, and the food carts under it are an institution.
- 07:30
Gambir to Yogyakarta, eight hours
TravelExecutive class from Gambir; leave in the morning, arrive late afternoon, and watch the country change from coastal rice to volcano flank about halfway.
- 17:00
Tugu Monument
HistoricThe white pillar where the two main axes of the city cross, put up by the sixth sultan and rebuilt by the Dutch with a different top; everybody in Jogja has been photographed here.
_-_img_06.jpg%3Fwidth%3D500)
- 18:00
Angkringan Tugu
EatCharcoal-lit carts by the monument selling sego kucing, fist-sized rice packets, and kopi joss, coffee with a lump of glowing charcoal dropped into the glass.
With more time: Malioboro runs south from the station to the palace square and is worth walking end to end once, ignoring everyone who greets you in English and mentions a batik exhibition. Book the car and driver for the next two days tonight; every hotel arranges it.
Day 5 in Yogyakarta
The kraton, gudeg, and the tunnels under the water castle
The palace opens early and closes not long after midday. Two tickets, one for the main court and one for the residence, and both worth it; if the gamelan is being played in the pavilion by the entrance, sit down and let it finish.
Lunch is gudeg, jackfruit stewed for hours in palm sugar and coconut milk until it turns brown and sweet, with rice, egg and a chilli side that is not sweet at all. Then ten minutes west to the sultan's pleasure garden, where the bathing pools are the photograph and the tunnels behind them are the reason to go.
- 09:00
Kraton Yogyakarta
OtherThe working court of the Hamengkubuwono sultans, with a gamelan pavilion, the state carriages and cases of court dress; free music and dance are staged most mornings.
_-_img_02.jpg%3Fwidth%3D500)
- 12:30
Gudeg Wijilan Yu Djum
OtherGudeg in the Wijilan lane east of the palace square, the richer version with a thick sauce, eaten off a banana leaf.
- 14:15
Water Castle
NatureA 1765 pleasure garden with a tower over the harem's bathing pool and, out through the old water gate, a warren of tunnels and interlacing stairs around a sunken mosque.
_of_Taman_Sari_Jogja_(2025)_-_img_02.jpg%3Fwidth%3D500)
With more time: The kampung around the water castle is full of small batik workshops where you can watch wax being drawn onto cloth, and they sell for a fraction of the shop prices on Malioboro. The state museum on the palace square runs shadow-puppet performances in the evening if you want the full version rather than the tourist hour.
Day 6 in Yogyakarta
Borobudur, Candi Pawon and Candi Mendut
Leave at six. The monument is an hour and a half west across the Kedu plain, it opens early, and arriving at opening rather than at ten is the difference between a temple and a crowd.
Six square platforms and three round ones carry more than two and a half thousand carved panels: the lower galleries run through the law of karma and the life of the Buddha, and the whole thing is meant to be walked clockwise, level by level, before you climb. Seventy-two Buddhas sit in perforated stupas around the top.
On the way back, two smaller temples stand on the same straight line as the great one, twenty minutes each and almost empty.
- 06:40
Borobudur
Religious2,672 relief panels, 504 Buddhas and a 118 metre base of grey volcanic stone; access to the upper terraces is capped and needs a timed slot booked with the ticket.

- 10:30
Candi Pawon
OtherA single richly carved chamber two kilometres down the road, sitting exactly on the line between the great temple and Mendut.
_-_img_01.jpg%3Fwidth%3D500)
- 11:30
Candi Mendut
ReligiousThe waypoint temple on the old pilgrim road, restored from 1897 and the first ancient monument in the country to be rebuilt; three of the finest stone Buddhas on Java sit inside.
_-_img_01.jpg%3Fwidth%3D500)
- 15:00
Late lunch back in Jogja
EatThe drive back is another ninety minutes; the noodle and satay stalls in the lanes off Malioboro run right through the afternoon.
With more time: Two museums sit inside the temple grounds and are included in the ticket: one on the restoration and the carvings hidden under the base, the other built around a full-size reconstruction of an eighth-century Javanese ocean-going ship. The mist-and-stupas photograph everybody knows is taken from a hill west of the river, not from the monument, and needs a four in the morning start.
Day 7 in Yogyakarta
Prambanan, Candi Sewu and sunset at Ratu Boko
East today, and a later start, because the plain is best at the end of the afternoon. The main compound is Hindu, raised in the ninth century by the Sanjaya kings while their Buddhist neighbours were finishing Borobudur thirty-odd kilometres west.
Six temples still stand in the central court out of a couple of hundred that once filled it. The tallest is Shiva's, and the Ramayana runs in carved panels around its terrace, which is the same story danced in the open-air theatre next door on dry-season evenings.
A kilometre north, inside the same park, sits a Buddhist complex almost nobody walks to. Then up the ridge to the south for the last hour of light.
- 10:00
Candi Prambanan
ReligiousSix sharp-edged towers in a walled court, the Trimurti trio of Shiva, Vishnu and Brahma at the centre, with the Ramayana carved around the terrace of the largest.

- 13:00
Candi Sewu
HistoricA Buddhist complex whose name means a thousand temples and which holds 249; the central shrine is restored, the niches are empty, and the stupas are pure Borobudur.

- 14:15
Lunch at the park gate
EatWarungs sit outside both entrances; eat here rather than driving back into the city, because the ridge is fifteen minutes away and you want to be up it early.
- 16:30
Kraton Ratu Boko
HistoricGate foundations, bathing pools and a terrace on a ridge above the plain, sold as a palace and probably a monastery; the view west with the temple towers small on the flat is what you are paying for.

With more time: The Ramayana ballet is danced in the open-air theatre inside the park on dry-season nights with a gamelan orchestra and a cast in the low hundreds, moving indoors when it rains; book through a hotel during the day. A dozen smaller temples are scattered across the plain, including a hilltop Hindu one south-east of the ridge that most drivers will add for very little.
Day 8 in Surabaya
East to Surabaya, and the old cigarette factory
Five hours east on the morning train, through Solo and Madiun and out onto the flat. Surabaya Gubeng puts you in the middle of the city.
The afternoon has one thing in it, and it is the right one: a colonial compound of 1862 that became the Sampoerna cigarette works, and is now a museum about clove cigarettes, a gallery and a rather good cafe. There is a viewing gallery over what used to be the hand-rolling floor.
- 09:00
Yogyakarta to Surabaya, five hours
TravelExecutive class from Tugu to Gubeng, leaving mid morning and arriving mid afternoon, with Mount Lawu on the right for the first two hours.
- 15:30
House of Sampoerna
CultureA Dutch colonial compound of 1862 turned into a museum of the kretek trade, with an art gallery, a cafe in the old manager's house and free guided bus tours of the old city leaving from the gate.

With more time: The free city bus tour run from the same courtyard is the easiest way to see the colonial quarter and needs booking on the day at the desk. For dinner, Surabaya's own dish is rawon, a black beef soup coloured with keluak nut, and every warung in the centre does it.
Day 9 in Surabaya
The Arab quarter, the heroes' monument and a submarine
Start in Ampel, the Arab quarter in the north, where a covered lane of shops selling dates, prayer beads and perfume leads to a mosque built in 1421 by one of the nine saints who brought Islam to Java. His tomb is behind it and the courtyard is busy with pilgrims from dawn.
Then the monument to November 1945, when Surabaya refused to hand the city back to the returning Dutch and fought for three weeks. The museum under it is well done and unsentimental, with dioramas, weapons and recordings of the radio broadcast that started it.
Finish at the river, where a decommissioned Soviet-built submarine sits on dry land in the middle of town and you can walk through it end to end.
- 08:30
Masjid Ampel
ReligiousThe oldest mosque in East Java, built in 1421 by Sunan Ampel, reached through a covered market lane and busy with pilgrims visiting the tomb behind it.

- 11:00
Tugu Pahlawan & Museum Sepuluh November
VisitA fluted obelisk over an underground museum about the battle of November 1945, with uniforms, dioramas and a wall of wartime weapons, labelled in English as well as Indonesian.

- 13:00
Rawon for lunch
EatBlack beef soup with rice, salted egg and bean sprouts, the dish this city is known for; the old-town warungs do the best version and stop when they sell out.
- 14:30
Monumen Kapal Selam (KRI Pasopati (410))
OtherA Soviet-built submarine that served the Indonesian navy from 1962 until 1990, cut open along one side and set on the riverbank so you can walk through the torpedo room.
_at_Surabaya_in_2019.jpg%3Fwidth%3D500)
With more time: The red bridge and the streets around it make up the best preserved Dutch commercial quarter in Indonesia, and the walk between it and the old cigarette works takes twenty minutes past a dozen 1920s facades. The bank museum on the way is free and better than it needs to be.
Day 10 in Surabaya
One last museum, then Juanda
A short morning. The old Bank of Java building, put up for an institution founded in 1828, has been restored down to the teller cages and the vault, and is ten minutes from the old square.
Juanda airport is about forty minutes south of the centre outside rush hour, with direct flights to Bali, Jakarta and Singapore.
- 09:00
Museum De Javasche Bank
VisitThe restored head office of the colonial Bank of Java, founded in 1828, with the counters, vault and ledgers left in place and hardly a visitor in it.
With more time: With a late flight, the great mosque out on the southern ring road has a lift up its minaret and a view over the whole city, and it is roughly on the way to the airport.
Before you go
The trains
Kereta Api Indonesia runs the network and sells seats through its own app, which takes foreign cards and issues a QR code. Book at least a few days out for executive class on the popular runs; seats go early around public holidays and in school breaks. Long-distance trains leave Jakarta from Gambir, which is right by the national monument, and arrive in Yogyakarta at Tugu, ten minutes on foot from Malioboro.
Executive class means reclining seats, air conditioning that is usually fierce, power sockets and a trolley. Bring a layer, bring your own water, and eat before you board rather than trusting the buffet car. Overnight services exist on both legs; the daytime ones are better, because the scenery is the point.
Getting around each city
Jakarta has a modern north-south metro line, a huge network of busway corridors and commuter trains, all on one tap-and-go card sold at any station. Ride-hailing, both cars and motorbike taxis, covers everything the rails miss and is the only sane way to move between two points in the same district at five in the afternoon.
Yogyakarta is small enough to walk in the old quarter, with TransJogja buses on fixed routes and a car and driver for the temple days. Surabaya runs on metered taxis and apps, and the old town is compact enough to see on foot if you start early.
Heat, rain and what to wear
It is around 32 degrees every day of the year with humidity to match, and the rains fall between roughly November and March, usually as a heavy hour in the afternoon. Plan sights for the morning and museums or lunch for the wet part of the day, whatever the season.
The mosques on this route welcome visitors outside prayer times and lend robes and headscarves at the door. Long trousers or a long skirt, covered shoulders, and shoes off. At the Hindu and Buddhist sites, dress is easier but you will still be handed a sash.
Java is the part of Indonesia most visitors fly over on their way to Bali, which is why the temples still feel like a discovery and why the trains are full of Javanese rather than tourists.
Ten days on the railway gives Borobudur and Prambanan a whole morning each, two cities that could not be less alike at either end of the line, and a great deal of rice country in between, watched from a reclining seat with the air conditioning on too high.
Go deeper on one city
Each of these covers a single stop on this route in its own right.
Make it your trip
Every stop, day and place here lands in your account as an editable trip. Move the days around, swap a city, add your own bookings and costs, and share it with whoever is coming.
Common questions
- Are the trains in Java any good?
- Very. Executive class is comfortable, punctual and cheap by European standards, the stations are clean and the booking app works with a foreign card. The Jakarta to Yogyakarta run takes about eight hours and Yogyakarta to Surabaya about five, both scenic, both far more pleasant than flying once you count the airports.
- Is Jakarta worth three nights?
- Three nights gives you two full days and an arrival, which is enough for the old town, the national collection and one thing further out. Cut it to two if temples are what you came for, but do not skip it altogether: nowhere else explains how the country actually works.
- Should I add Mount Bromo?
- If you have twelve days rather than ten, yes. It is reached from Surabaya or Malang, means a pre-dawn start from a village on the crater rim, and is best given two nights of its own rather than squeezed onto the end of the Surabaya stay.
- When is the best time for this trip?
- May to September, the dry half of the year, when the temple mornings are clear and the Ramayana ballet is danced outdoors at Prambanan. The wet season still works: rain here tends to arrive as a violent afternoon hour rather than an all-day grey.
- Can I change the route once I have saved it?
- Yes. Add Solo or Malang between the stops, move a night from Jakarta to Yogyakarta, or swap the last leg for a flight: everything is editable once it is in your own trip.