Hranice is a town (město) in Přerov District, in the Olomouc Region, Czechia. Hranice lies at 250 m above sea level, 6.1 km from the Eastern Sudetes mountains, by the Velička. It has 17,969 inhabitants (2024). The nearest city is Přerov, 24 km to the west. Among the landmarks around are Helfštýn Castle (9.7 km), Kroměříž Castle (39 km) and Church of the Holy Trinity (20 km). Among the natural features are Hranice Abyss (3.7 km) and Zbrašov Aragonite Caves (3.7 km).