The construction of novel fluorescent nanozymes is highly desirable for providing new strategies for nanozyme-based sensing systems. Herein, a novel ratiometric fluorescence sensing platform was constructed based on carbon dots (CDs) as both luminophores and nanozymes, which could realize the sensitive detection of hydrogen peroxide (H2O2). CDs with peroxidase-mimicking activity were prepared with a one-step hydrothermal method using L-histidine as an inexpensive precursor. CDs had bright blue fluorescence. Due to the pseudo-peroxidase activity, CDs catalyzed the oxidation of o-phenylenediamine (OPD) with H2O2 to generate 2,3-diaminophenolazine (DAP). The fluorescence resonance energy transfer (FRET) between CDs and DAP resulted in a decrease in the fluorescence of CDs and an increase in the fluorescence of DAP, leading to a ratiometric fluorescence system. The free radical trapping experiment was used to investigate the reactive oxygen radicals (ROS) in the catalytic process of CD nanozymes. The enzymatic parameters of CD nanozymes, including the Michaelis constant (Km) and the maximum initial reaction velocities (Vmax), were investigated. A good affinity for both OPD and H2O2 substrates was proven. Based on the FRET between CDs and OPD, a ratiometric fluorescence analysis of H2O2 was achieved and results ranged from 1 to 20 μM and 20 to 200 μM with a low limit of detection (LOD, 0.42 μM). The detection of H2O2 in milk was also achieved.