In this study, cellulose nanofibril (CNF) films from ramie fibers were prepared with different pectin compositions and contents, and the influence of residual pectin on the overall performances of CNF films was evaluated. There was no significant effect of the residual pectin composition on the properties of obtained CNF films. However, when the content of residual pectin was increased from 0.45 % to 9.16 %, the surface area and water absorption of CNF films were increased from 0.2223 to 0.3300 m2/g, and from 93.51 % to 122.42 %, respectively. Pectin covers the CNF surface and act as a physical barrier between the cellulose fibrils; thus the nanocellulose films with high pectin content will have a loose and porous structure, resulting in a high surface area and a high water absorption. Besides, with the residual pectin content decreasing from 9.16 % to 0.45 %, the UVA light transmittance and tensile strength of CNF films were increased from 30.6 % to 59.9 %, and from 37.67 to 100.26 MPa, respectively. After removal of amorphous pectins in CNFs, the low pectin containing CNFs are able to pack more compactly to form a strong and thin film. This paper provides guidance for the preparation of CNF films with different performance requirements.