Bamboo is a potential resource to produce renewable materials with replacement of plastic. In this study, cellulose-rich bamboo fibers and parenchyma with partial lignin (4–10 %) retained were prepared from microwave liquefaction, thereafter nanocellulose with uniform diameter (less than 10 nm) distribution were obtained by directly dissolving the cellulose-rich bamboo cells in TBAA/DMSO system. By solvent-casting, transparent nanocellulose films with efficient UV-absorbing ability especially the excellent UVA (82 %) and UVB (99 %) absorbing performance were fabricated. The films showed homogeneous network structure and had good tensile strength (15−25 MPa). Changes in cellulose crystallinity structure was observed during the film preparation process. Results also showed that the lignin in the cellulose-rich bamboo could distribute uniformly in the nanocellulose films and had effect on the film formation, UV-absorbing ability and physical-mechanical properties. Overall, microwave liquefaction coupling with TBAA/DMSO dissolving system could be selected as a facile and simple method to produce transparent nanocellulose films with UV-absorbing property.