Most international train routes between Slovenia and the rest of Europe pass through Austria. Below are links to Austrian cities:
Rail link to Villach
Rail link to Graz
-
Klagenfurt: Indirect connections are available to both Ljubljana and Maribor, with a change of trains required. To reach Ljubljana, you’ll need to change in Villach. For Maribor, transfer in Bleiburg.
Rail link to Klagenfurt
Rail link to Vienna
! The route between Villach and Salzburg is closed until 13 July 2025 due to renovation works in the Tauern Railway Tunnel. Travel along the Villach Hbf–Salzburg Hbf–Munich Hbf route and back currently involves multiple transfers and bus services.
Rail link to Salzburg
A rail line connects the Slovenian capital, Ljubljana, with the Hungarian capital, Budapest, passing through Celje and Maribor along the way. You can travel from Maribor to Budapest either via Hodoš or via Spielfeld. Trains run daily.
Due to construction work on the Hungarian side, please check the current status of the rail link on the Hungarian State Railways website.
Rail link to Budapest
Some German cities can be reached by train via Austria. However, bear in mind that you will need to change trains. Due to construction work on the German rail network, please check the current status of routes between Germany and Slovenia.
Deutsche Bahn Website
Rail link to Munich
Rail link to Frankfurt
-
Stuttgart: A rail connection runs to Zagreb; however, the train stops in Spielfeld, Maribor, Celje, Sevnica, and Dobova along the way.
Rail link to Stuttgart
A rail link between Zurich and Zagreb that also passes through Slovenia. The train stops in Šentilj, Maribor, Pragersko, Celje, Sevnica, Krško, and Dobova.
Rail link Zurich–Zagreb (via Slovenia)
An indirect rail link also links the Slovenian and Czech capitals, Ljubljana and Prague. Ljubljana is accessible via Vienna and Villach (with two train changes) either through Jesenice, or via Graz through Maribor and Celje.
Rail link to Prague
You can also take a train from one of the nearby airports. See below where and how you can combine air and rail travel to reach Slovenia.