Trains in Switzerland do not offer free WiFi – unless you have a mobile phone contract with one of Switzerland’s national telecom operators. This service is to be continuously expanded in the coming years, however. International trains, on the other hand, do offer WiFi.
The situation is quite different at the stations: you can access the Internet free of charge at around 80 SBB stations across Switzerland. Simply register your details and get 60 minutes of free surfing time.