We prepared novel green, eco-friendly carbon dots as a dual-channel probe for highly sensitive and selective detection of tartrazine (Trz) and palladium(II) (Pd(II)) involving, respectively, FRET and electron transfer mechanisms. Furthermore, the successful utilization of the carbon dots for detecting Trz and Pd(II) in actual samples implies its potential application prospects in analysis.