In this communication, we report a general strategy for the production of carbon nanodots (CDs) by microwave irradiation of amino acids in the presence of acid or alkali. The resultant CDs exhibit strong photoluminescence and intense chemiluminescence enhancement of the NaIO4–H2O2 system.