Easily synthesized high quantum yield sulfur- and nitrogen-doped carbon dots can serve as a very efficient fluorescent sensor for the detection of Cr(vi).