Ubud
Ubud
Pekalongan
Pekalongan
Train Bus

Ubud to Pekalongan

Updated: 28 May 2026

The route from Ubud to Pekalongan covers approximately 950 kilometers. You will travel from Ubud to Gilimanuk, cross to Ketapang, and then take a train or bus to Pekalongan. Pekalongan is known as the 'City of Batik' and is a major stop on the northern Java rail line. The journey involves a mix of coastal roads and rail travel through the heart of Java. Expect a total travel time of around 21 hours.

Total Distance: 950 km driving distance, 860 km straight-line air distance.
Fastest Way
Train travel is the fastest and most comfortable way to reach Pekalongan.
Cheapest Way
Bus travel is the most economical option for this long-distance journey.
Compare Ubud to Pekalongan Routes
Train
Connecting
Bus
Direct
Duration 21 hours 23 hours
Avg Price 550,000 - 950,000 IDR 600,000 - 900,000 IDR
Operator Kereta Api Indonesia (KA Sembrani) PO Haryanto
Route Banyuwangi - Surabaya - Pekalongan Denpasar - Gilimanuk - Ketapang - Pantura Highway - Pekalongan
Tip The train ride offers beautiful views of the Javanese countryside. PO Haryanto is known for its reliable service on the northern Java route.
Travel Tips
  • Batik Shopping
    Pekalongan is the best place to buy authentic batik; bargain politely at local markets.
  • Train Comfort
    Bring a neck pillow for the long train journey to ensure better sleep.
  • Food
    Try 'Nasi Megono', a local specialty made with young jackfruit.
  • Connectivity
    Use a local SIM card for reliable internet access during your travels.
  • Booking
    Book your train tickets well in advance as they sell out quickly during holidays.
Safety Tips
  • Personal Items
    Keep your bag in front of you in crowded bus terminals.
  • Night Travel
    Avoid walking alone in unfamiliar areas late at night.
  • Health
    Carry basic first aid supplies including antiseptic and bandages.
  • Emergency
    Keep the contact details of your hotel in Pekalongan handy.
People Also Ask
  • Is Pekalongan worth visiting?
    Yes, it is a cultural hub famous for its batik and unique culinary scene.
  • How do I get around Pekalongan?
    You can use 'becak' (pedicabs) for short distances or ride-hailing apps for longer trips.
  • Are there trains to Pekalongan?
    Yes, Pekalongan station is a major stop on the northern Java rail line.
  • What is the best time to visit?
    The dry season from June to August is ideal for exploring the city.
  • Can I fly to Pekalongan?
    No, there is no commercial airport in Pekalongan; the nearest is in Semarang.
Quick Info
  • From Ubud, Bali, Indonesia
  • To Pekalongan, Jawa Tengah, Indonesia
  • Modes
Best Time to Travel

June to August, when the weather is dry and the batik festivals are often held.

Things to Do in Pekalongan
1
International Batik Center
A must-visit to see the finest batik collections and learn about the history of this traditional craft.
2
Museum Batik Pekalongan
Located in a historic building, it houses a vast collection of batik from various regions in Indonesia.
3
Pantai Pasir Kencana
A beautiful beach area perfect for a relaxing evening walk and enjoying local snacks.
4
Alun-Alun Pekalongan
The city square is a great place to experience the local atmosphere and try authentic Pekalongan cuisine.
Tags
Ubud to Pekalongan Bali to Pekalongan Pekalongan train station Java travel guide Gilimanuk ferry Indonesia transport Pekalongan batik city traveling to Pekalongan