Hartford is a city in Warren County, Iowa, United States. The population was 733 at the time of the 2020 census. It is part of the Des Moines–West Des Moines Metropolitan Statistical Area. Hartford was laid out in 1849 by John D. Hartman. John D. Hartman was the father of an Indianola mayor.