Organic piezoelectric nanogenerators (PENGs) are attractive in harvesting mechanical energy for various self-powering systems. However, their practical applications are severely restricted by their low output open circuit voltage. To address this issue, herein, we prepared two two-dimensional (2D) covalent organic frameworks (COFs, CityU-13 and CityU-14), functionalized with fluorinated alkyl chains for PENGs. The piezoelectricity of both COFs was evidenced by switchable polarization, characteristic butterfly amplitude loops, phase hysteresis loops, conspicuous surface potentials and high piezoelectric coefficient value (d