During past few decades, string theory has been used as a source of conjectural dualities in various areas of physics and mathematics. We have extended these applications of string dualities to the study of chiral algebras in 2d CFT. In this talk, I will sketch how to use S-duality of D3-D5-NS5 systems to shed some light on already known dual constructions of chiral algebras and generate huge amount of new dualities.