Sodium thiosulfate (Na2S2O3), also spelled sodium thiosulphate, is a chemical and medication. As a medication it is used to treat cyanide poisoning and pityriasis versicolor. It is an inorganic compound that is typically available as the pentahydrate, Na2S2O. 5H2O.