We describe a method to fold single polymer chains into nanoparticles using simple thermal Diels–Alder (DA) chemistry.