Hartford is a city in Washington and Dodge counties in the U.S. state of Wisconsin. As of the 2020 census, 15,626 people live in Hartford.