As over exposure of the earth to ultraviolet (UV) light and increased amount of petroleum-based plastic waste, biodegradable UV-blocking materials are desired for diverse sustainable applications. Xylose residue, as the byproduct of xylitol production from corn cobs, is mainly composed of cellulose and lignin. Here, we develop a series of xylose residue films through a top-down approach (i.e., tunable delignification and regeneration) without any additional additives. The treated xylose residues with lignin content of 4.4-29.7% are used to prepare regenerated films, which exhibit excellent UV-blocking capability: 68.6-99.2% for UVB (290-320 nm) and 47.1-98.2% for UVA (320-400 nm). Moreover, these films remain a great optical transparency (50.6-86.6%) and show enhanced water vapor permeability (2.17-2.76 ×10 -11 g•cm•cm -2 •s -1 •mmHg -1 ), surface hydrophobicity (water contact angle=72.3-86.4°), and thermal stability. Overall, our sustainable UV-blocking films have potential applications in the fields of electronics, food packaging, and windshields, etc. This study provides new insights into converting xylose residue directly to high value-added functional bioproducts.