Skip to content

Search a place, an artwork, a question

    The great stone arch of the Solkan railway bridge over the Soča valley, with wooded slopes behind
    Slovenian operator
    Slovenske železnice (SŽ)
    From Austria
    Villach, Graz, Vienna, Klagenfurt
    From Italy
    Trieste, Villa Opicina, Venice

    To reach Slovenia by train, the easiest way in is through Austria, via Villach and Jesenice or via Graz and Maribor; from Munich there's a sleeper to Ljubljana. There are trains to Zagreb, Rijeka and Budapest, while from Italy you nearly always change at Villa Opicina. Slovenske železnice sells tickets from €9 to Zagreb, €9.90 to Villach and €11.60 to Trieste.

    Second-class fares from Ljubljana

    DestinationStandard fareFrom (offer)Route
    Villach€19.80€9.90 (FME)Jesenice
    Vienna€88.70 via Maribor€39.90 (FME)Maribor and Graz, or Jesenice and Villach
    MunichFrom €64.90€24.90 (SparSchiene/SparNight)Villach and Salzburg
    Trieste Centrale€11.60No offer listedVilla Opicina
    ZagrebNot given€9 (Spezial)Dobova
    BudapestNot given€16Celje, Maribor and Hodoš, or Graz
    Nova Gorica-Venezia Mestre€16.10No offer listedGorizia

    Slovenske železnice international travel pages, checked on 17 October 2026. The fare tables have different validity dates; check them before buying.

    How I would get there
    Sergio Lepone

    By train I'd enter Slovenia from Austria or Croatia, where it works well; from Italy, with a change almost guaranteed, I'd check the coach first. And I'd buy the cheap fares online before boarding, because on board they only sell the full fare.

    If you only read this

    Full read: 2 min

    • Most international trains come in through Austria.
    • Villach from €9.90, Zagreb from €9 and Munich from €24.90.
    • From Italy you nearly always change, except the weekend direct train to Nova Gorica.
    • Buy offers before boarding.

    My checklist before setting off

    The practical bit

    What the official sites leave out

    1. 01 To save money

      First Minute Europe

      With the SŽ and ÖBB FME offer, a Ljubljana-Villach single starts at €9.90, and children aged 6 to 15 travel free with an adult. Seats are limited and non-refundable.

      Vienna to Ljubljana
    2. 02 Most beautiful

      The Munich sleeper

      The EN 414 leaves Ljubljana at 10.10pm and reaches München Ost at 5.50am, with seats, couchettes or sleeping cars. On the SparNight fare it starts at €24.90.

    3. 03 Getting there

      Zagreb from €9

      Several direct trains a day link Ljubljana and Zagreb, with the Spezial fare at €9 one way. They stop at the Dobova border station.

      Zagreb to Ljubljana
    4. 04 My tip

      Buy before you board

      Slovenske železnice warns that on board you can only buy the full fare to the border. International offers must be bought beforehand at a ticket office or online.

    From Austria, the easiest way in

    This is the easiest way in. Trains leave Ljubljana for Villach via Jesenice roughly every two hours, from 5.42am to 7.29pm, plus the 10.10pm sleeper. The standard fare is €19.80, and with First Minute Europe it starts at €9.90. Graz is reached via Maribor on a direct train several times a day, and Vienna has two routes, via Graz and Maribor or via Villach and Jesenice, with tickets from €39.90 (€29.90 if you start from Maribor or Celje). Klagenfurt needs a change, at Villach for Ljubljana and at Bleiburg for Maribor. I cover it in detail in Vienna to Ljubljana.

    From Germany

    Munich has daily trains via Villach and Salzburg, nearly all with a change at Villach, plus a sleeper. The EN 414 leaves Ljubljana at 10.10pm and reaches München Ost at 5.50am, and the return leaves München Ost at 11.51pm, arriving at 7.50am. A standard seat costs from €64.90, and the SparSchiene or SparNight fare drops to €24.90, with limited availability and valid only on the night train. There are six- and four-berth couchettes and sleeping cars.

    From Croatia and Hungary

    Zagreb has several direct trains a day from €9 on the Spezial fare, explained in Zagreb to Ljubljana, and a Friday through train runs from Zagreb via Ljubljana to Pula, coming back on Sundays. The Tourist Board also mentions two daily trains to and from Rijeka. Budapest has the MV 247, leaving Ljubljana at 9.15am and reaching Budapest Déli at 4.59pm via Celje, Pragersko and Hodoš, and another option via Graz to Budapest Keleti. Slovenske železnice sells it from €16, and it’s covered in Budapest to Ljubljana.

    If you are staying the night, see the best hotel deals in Ljubljana for your dates: the well-placed rooms go fast.

    From Italy, with a change

    Here you nearly always change. Between Trieste and Ljubljana, Slovenske železnice offers two trains a day each way with a change at Villa Opicina, for €11.60, and until 12 December 2026 a replacement bus runs between Ljubljana and Logatec on the evening departure from Ljubljana. The exception is the direct train on Saturdays, Sundays and Italian holidays between Nova Gorica and Venezia Mestre, for €16.10. Both are covered in Trieste to Ljubljana and Venice to Ljubljana.

    How to buy an international ticket

    I’ve gathered the alternatives to rail, from flying to the coach, in how to get to Slovenia. Buy international offers before boarding, at a ticket office or on the Slovenske železnice website, because the conductor can only sell you the expensive ticket, and only as far as the border station. The Tourist Board recommends booking ahead for international journeys.

    So you do not lose the morning at the ticket office, browse tickets and tours in Ljubljana on GetYourGuide.

    If you are staying the night, see the best hotel deals in Ljubljana for your dates: the well-placed rooms go fast.

    Nova Gorica railway station, a long pale building, with Europe Square in front under a blue sky

    Nova Gorica railway station, a long pale building, with Europe Square in front under a blue sky

    The Lent quarter of Maribor on the banks of the Drava, with red-roofed houses, a tower and reflections in the river

    The Lent quarter of Maribor on the banks of the Drava, with red-roofed houses, a tower and reflections in the river

    Test yourself

    True or false?

    0/3 Pick before you peek.

    1. There's a sleeper train between Ljubljana and Munich.

      See the answer

      True. Slovenske železnice lists the EN 414, leaving Ljubljana at 10.10pm and arriving at München Ost at 5.50am.

    2. On the FME offer to Austria, children aged 6 to 15 pay half fare.

      See the answer

      False. They travel free when accompanied by an adult, under the First Minute Europe conditions.

    3. International offer tickets can be bought from the conductor.

      See the answer

      False. On board, only the full fare to the border station is sold.

    Ljubljana-Zagreb on Spezial
    €9
    Ljubljana-Villach on FME
    €9.90
    Ljubljana-Munich, from
    €24.90
    Ljubljana-Budapest, from
    €16

    Frequently asked questions

    Can I get to Slovenia by train from the UK?

    Yes, but with several changes, as there's no through train. The usual way is to reach Germany, Austria or Italy and come in via Munich, Villach or Trieste. Interrail and Eurail passes are valid in Slovenia.

    Is there a night train to Ljubljana?

    Yes. The EN 414 leaves Ljubljana at 10.10pm for Munich, arriving at München Ost at 5.50am, and the return sleeper leaves München Ost at 11.51pm and reaches Ljubljana at 7.50am.

    Is there a train from Vienna to Ljubljana?

    Yes, by two routes, via Graz and Maribor or via Villach and Jesenice, according to Slovenske železnice, which sells tickets from €39.90 on First Minute Europe (€29.90 from Maribor or Celje).

    Is there a train from Budapest to Ljubljana?

    Yes. The MV 247 leaves Ljubljana at 9.15am and reaches Budapest Déli at 4.59pm via Hodoš, and there's another option via Graz to Budapest Keleti. Slovenske železnice sells it from €16, and it's covered in [Budapest to Ljubljana](/en/slovenia/budapest-to-ljubljana/).

    Is there a direct train from Italy to Slovenia?

    Only the weekend train between Venezia Mestre and Nova Gorica. Between Trieste and Ljubljana, the Slovenske železnice timetable has a change at Villa Opicina.

    0 of 425 Slovenia guides

    Your next stamp

    1. Slovenia, Italy and Austria
    2. How to get there
    3. Nearby airports
    Sergio Lepone

    Questions about Slovenia? Write to me

    If something does not add up or a fact is missing, write to me and I will answer myself.

    My email sergiolepone@gmail.com

    Sergio Lepone

    By

    Tourism graduate with a master’s in Tourism Management and Planning from the University of Málaga, who has travelled across Europe. He writes every guide from official sources and his own judgement.

    Published on . Updated on . Facts checked on .

    How I check every fact and where it comes from

    Some links in this guide are affiliate links: if you book through them, the site earns a commission at no extra cost to you. Affiliate disclosure

    Photos: Loxy!! from Vancouver, Canada (CC BY 2.0); Terragio67 (CC BY-SA 4.0); Jernej Furman from Maribor, Slovenia (CC BY 2.0), via Wikimedia Commons.