Hallstatt is a small and picturesque town located 2.5 hours from Salzburg. It is accessible both by bus and train. The bus route is a bit longer and might be uncomfortable as I have seen people standing all the way from the start to end.
The Postbus 150 is available from the bus stop at Salzurg HBF and it goes upto Bad Ischl. From there, Postbus 542 needs to be taken to reach Hallstatt.
I took the train IC 543 from Salzburg at 06:15 hrs which reached Attnang-Pucheim at 07:00 hrs. From there another change via train RE 3406 bought me to Hallstatt station. The station is a very small one with no luggage storage facilities or even a toilet. From the station, a boat takes you to the other side where the town is actually located. I didn’t alight at Hallstatt, rather I continued for 2 more stops to Dachstein from where I took Postbus 543 to the Dachstein tourist info center for my tour of the Ice caves and the famous viewing platform called Obertraun 5 fingers.