Abstract: We construct L-functions for general modular-invariant 2D CFTs, providing an analytic language for studying high-energy spectra and their resolution. We apply this tool to the modular bootstrap at large central charge. This leads to some considerations of chaos and spectral rigidity in 2D CFT.