Hartford is a city in Washington and Dodge counties in the U.S. state of Wisconsin. As of the 2010 census, the city had a population of 14,223. All of this population resided in the Washington County portion of the city.