Carbon quantum dots (CQDs) are fluorescent carbon nanomaterials with potential applications in sensing, optoelectronics, displays, anticounterfeiting and environmental technologies. Their optical properties can be adjusted by modifying the carbon structure and surface chemistry, particularly through defect states and the incorporation of heteroatoms. However, achieving predictable and continuous tuning of photoluminescence from a single carbon precursor remains difficult.