Herzogsdorf is a municipality in the district of Urfahr-Umgebung, in the Austrian state of Upper Austria. It lies in the Mühlviertel region of the country, north of the city of Linz, which serves as the administrative centre of both the district and the state.
As a municipality, Herzogsdorf is one of the constituent local administrative units of the Urfahr-Umgebung district, a district that surrounds Linz on its northern side. The area is part of the broader Upper Austrian landscape between the Danube valley and the Bohemian Massif.