Light-to-heat conversion by carbon black enables local heating and depolymerization of polystyrene to its monomer.