In the national league tables, York was in 16th place, an improvement of four places on the guide for 2023.
The guide aims to offer prospective students information to help choose where to study.
The Complete University Guide said York's ranking reaffirmed its status as "a leading institution renowned for its exceptional teaching and ground-breaking research".