We compute generating functions for elliptic genera with values in line bundles on Hilbert schemes of points on surfaces. As an application we also compute generating functions for elliptic genera with values in determinant line bundles on moduli spaces of sheaves on K3 surfaces.