Yogyakarta
Yogyakarta
Pekalongan
Pekalongan
Train Bus

Yogyakarta to Pekalongan

Updated: 28 May 2026

The journey from Yogyakarta to Pekalongan covers about 220 kilometers through the northern part of Central Java. The most comfortable way to travel is by train, which takes about 4 to 5 hours. Alternatively, you can take a bus, but the train is highly recommended for its comfort and the beautiful views of the Javanese countryside. The route passes through Semarang and Kendal. This is a popular route for those heading to the 'Batik City' of Indonesia.

Total Distance: 220 km by road, 180 km by air.
Fastest Way
Train is the most reliable and fastest way to reach Pekalongan.
Cheapest Way
Bus is the cheapest, but the train is more comfortable.
Compare Yogyakarta to Pekalongan Routes
Train
Direct
Bus
Direct
Duration 4 hours 30 mins 6 hours
Avg Price IDR 150,000 - 300,000 IDR 80,000 - 150,000
Operator PT Kereta Api Indonesia (Joglosemarkerto) Ramayana
Route Yogyakarta Station (YK) to Pekalongan Station (PK). Giwangan Terminal to Pekalongan Terminal.
Tip The train is the most reliable and comfortable option. Buses are frequent but can be crowded.
Travel Tips
  • Book Trains
    Book your train tickets online in advance.
  • Bus Choice
    Ramayana is a reliable bus company for this route.
  • Station Access
    Pekalongan Station is centrally located.
  • Local Food
    Try Megono, a famous local dish made from young jackfruit.
  • Weather
    Pekalongan can be hot; carry water and sunscreen.
Safety Tips
  • Train Safety
    Keep your valuables secure at all times.
  • Bus Safety
    Avoid taking night buses if you are not comfortable with mountain roads.
  • Taxi Apps
    Use Grab or Gojek for safe transport within the city.
  • Emergency
    Know the location of the nearest hospital in Pekalongan.
People Also Ask
  • Is the train ride scenic?
    Yes, it passes through beautiful rural landscapes.
  • How long is the train ride?
    It takes about 4 to 5 hours.
  • Are there flights?
    There are no direct flights to Pekalongan.
  • Is Pekalongan safe?
    Yes, it is a major city and generally safe.
  • What is the best time to visit?
    The dry season is best for outdoor activities.
Quick Info
  • From Yogyakarta, Daerah Istimewa Yogyakarta, Indonesia
  • To Pekalongan, Jawa Tengah, Indonesia
  • Modes
Best Time to Travel

Dry season from May to September for clear views.

Things to Do in Pekalongan
1
Batik Museum
Visit this museum to learn about the history and art of Pekalongan batik.
2
Pasar Grosir Setono
Shop for high-quality batik textiles in this famous wholesale market.
3
Pantai Pasir Kencana
Enjoy the coastal views and local activities at this popular beach.
4
Alun-Alun Pekalongan
Relax in the city square and enjoy local street food.
Tags
Yogyakarta to Pekalongan train travel to Pekalongan Pekalongan transport Yogyakarta transport Central Java travel train to Pekalongan Pekalongan tourism Java rail travel