We study quasiperiodicity-induced localization of waves in strongly precompressed granular chains. We propose three different set-ups, inspired by the Aubry-André (AA) model, of quasiperiodic chains; and we use these models to compare the effects of on-site and off-site quasiperiodicity in nonlinear lattices. When there is purely on-site quasiperiodicity, which we implement in two different ways, we show for a chain of spherical particles that there is a localization transition (as in the original AA model). However, we observe no localization transition in a chain of cylindrical particles in which we incorporate quasiperiodicity in the distribution of contact angles between adjacent cylinders by making the angle periodicity incommensurate with that of the chain. For each of our three models, we compute the Hofstadter spectrum and the associated Minkowski-Bouligand fractal dimension, and we demonstrate that the fractal dimension decreases as one approaches the localization transition (when it exists). We also show, using the chain of cylinders as an example, how to recover the Hofstadter spectrum from the system dynamics. Finally, in a suite of numerical computations, we demonstrate localization and also that there exist regimes of ballistic, superdiffusive, diffusive and subdiffusive transport. Our models provide a flexible set of systems to study quasiperiodicity-induced analogues of Anderson phenomena in granular chains that one can tune controllably from weakly to strongly nonlinear regimes.This article is part of the theme issue 'Nonlinear energy transfer in dynamical and acoustical systems'.