The invention discloses a safe and simple method for preparing double-doped nitrogen and phosphor carbon quantum dots. In the method, firstly, amino acid and a carbon pre-cursor are dissolved in deionized water, a phosphoric acid solution is added, and a settled solution is prepared through stirring; then, the mixed solution is placed into an ultrasonic machine to be treated, wherein ultrasonic time is 1-2 h; the solution after ultrasonic treatment is heated for 1-5 hours in an oil bath at the temperature of 90-150 DEG C, and a nitrogen and phosphor co-doped carbon dot solution is prepared andcooled until room temperature is reached; large-particle impurities in the solution are removed through centrifuging, then dialysis is performed in a dialysis bag, and non-reaction raw materials andother small-particle impurities are removed. The raw materials are safe and free of toxin, conditions are mild, and the process is simple; by changing the type of amino acid and adjusting the ratio ofthe raw materials, the carbon quantum dots capable of emitting blue, green, yellow or orange red light can be obtained, and can be applied to the fields of bioimaging, ion detecting and others.