Long-term and excessive ultraviolet (UV) radiation will trigger various skin diseases, and traditional organic and inorganic sunscreens possess disadvantages such as biocompatibility and being prone to aggregation. Carbon polymer dots (CPDs) are an excellent candidate for UV absorbers due to their polyfunctional groups, superior stabilization, and low cytotoxicity. In this study, we explored the conformational relationship of the structure of CPDs on the full-band absorbers by synthesizing various CPDs using amino acids with different structures. We proposed that amino acid self-assembly readily generates UVBabsorbing CPDs, and the increase in nitrogen-containing compounds facilitates the synthesis of full-band UV absorbers. The efficient and full-band-absorbing carbon polymer dots (His-CPDs) were synthesized with L-histidine and ethylene imine polymer (PEI) through a one-step hydrothermal method obtained by screening. Subsequently, three UV absorption bands of His-CPDs were explored attributed to carbon cores at 225 nm, including saturated hydrocarbons containing oxygen, nitrogen, and other heteroatoms derivatives. The C�C bond induced the 300 nm absorption band, and 356 nm was mainly from the C�N bond formed by PEI. Finally, His-CPDs were prepared as sunscreens and applied to mice, which showed excellent anti-UV ability and a high sun protection factor (SPF) compared to commercial sunscreens. It is an essential breakthrough made using the superior UV-absorbing properties of CPDs for life.