Plastics are exceptionally useful materials for packaging and all kinds of consumer items, but poorly managed plastic waste contributes to land and ocean pollution. This problem can, in principle, be prevented by recycling (Fig. 1). However, many plastic products were not designed for mechanical recycling, which involves melting and reprocessing, and therefore produces lower-quality material than the original plastic.