High-performance sensors for the selective and sensitive identification of chromium(VI) [Cr(VI)] with high toxicity and carcinogenicity are urgently demanded. Carbon quantum dots (CQDs) as outstanding fluorescence sensors were widely applied to detect Cr(VI). Herein, the covalent organic frameworks (COFs) were utilized as a homogeneous precursor to prepare CQDs with N heteroatom by microwave-assisted chemical tailoring. The oxidation degree of COFQDs was adjusted by controlling the amount of sodium persulfate. The results showed that the oxidation degree has a significant influence on the fluorescence performance of COFQDs. In particular, the obtained COFQDs, which possess unique C−N conjugated structures and controllable oxidation degree, displayed a high quantum yield (QY) of up to 26%. X-ray photoelectron spectroscopy (XPS) and Fourier transform infrared (FT-IR) results indicated that the cutting mechanism involved the breaking of hydrogen bonds and imine bonds, accompanied by partial hydrolysis. In addition, the COFQDs demonstrated promise as efficient "on−off" photoluminescence sensors to detect Cr(VI), providing great advantages including rapid response, large-scale monitoring, and high selectivity. Also, the COFQDs−Cr(VI) system was also used as an "off−on" fluorescence sensor for the detection of ascorbic acid (AA). This study is expected to open an avenue for preparing CQDs with excellent properties using suitable precursors and optimizing oxidation degree.