Supported carbon dots serve as high-performance adsorbent for the retention of trace cadmium.