By Train.
From the main line between Salzburg and Vienna, get off at Attnang-Puchheim. Take a train from here towards Bad Ischl and Obertraun. The Hallstatt station is south of Bad Ischl and one stop north of Obertraun; it is on the east bank of the Hallstättersee Hallstatt Lake and consist of just a boat dock next to the tracks. A regular ferry service will meet each arriving train and take you to the town across the lake. One of the best views of Hallstatt is from this ferry ride across the lake, especially in the morning when the sun is shining on the town.When leaving, the boat takes you back to the tiny train station, where you may take the train back to Attnang-Puchheim and transfer to your next destination. The boat meets each train leaving the station, and the schedule is posted at the boat dock, or it also is available at tourist information. The tourist information office can provide further information about train schedules since the train station itself is likely unmanned and it is across the lake. You can buy the ticket on the train, but only with cash. It is better to buy your next ticket in advance, if possible. Once on the train, ask the conductor if he/she knows the platform number of your desired transfer don't worry, all train employees speak English, or check the departures screens when you get to Attnang-Puchheim. But be prepared, the transfer may be fast, as Attnang-Puchheim is not a big station, and the passing trains will not stop for long.