A large boiler of a cloth dyeing factory in Samut Prakan exploded at 5 am Sunday, injuring 21 workers, most of them Myanmar workers.