Ansfelden is a town located in the federal state of Upper Austria. In 2025, the population was 16,035. The distance to the state capital (Linz) is 12 km. The distance to the Austrian capital (Vienna) is 155 km.