The train doesn't actually stop in the village — the ferry finishes the trip.

Train plus ferry — the standard route
Hallstatt's train station, Hallstatt-Obertraun, sits on the opposite shore of the Hallstättersee from the village itself. Arriving by rail means a short, scenic passenger ferry crossing to finish the journey, timed to meet incoming trains. This is the route most visitors without a car use, connecting through Attnang-Puchheim on the main Salzburg–Vienna line.
Why driving is genuinely discouraged
Hallstatt's single lakefront road was never designed for modern tourist volume, and parking directly in the village is extremely limited and expensive relative to demand. On the busiest peak-season days, the road closes to non-resident traffic outright. Most visitors driving in are directed to park outside the village and either walk in or take a shuttle.
Regional bus options
Public bus routes connect Hallstatt with Bad Ischl and other Salzkammergut towns, useful if you're basing yourself somewhere nearby rather than in Hallstatt itself — a reasonable strategy for anyone trying to avoid both the bus cap and the village's limited, pricier accommodation.
Boat tours on the lake
Separate from the practical ferry crossing, scenic boat trips run on the Hallstättersee itself, giving a water-level view of the village and the surrounding Dachstein slopes that's genuinely different from any of the land viewpoints.