Hartford is a city in Geneva County, Alabama, United States. It incorporated in 1896. It is part of the Dothan, Alabama Metropolitan Statistical Area. At the 2010 census the population was 2,624, up from 2,369 in 2000.
Hartford is located at 31°6′13″N 85°41′40″W (31.103664, -85.694544).
According to the U.S. Census Bureau, the city has a total area of 6.2 square miles (16 km2), of which 6.2 square miles (16 km2) is land and 0.16% is water.
At the 2000 census there were 2,369 people, 966 households, and 647 families living in the city. The population density was 380.1 people per square mile (146.8/km2). There were 1,121 housing units at an average density of 179.9 per square mile (69.5/km2). The racial makeup of the city was 79.11% White, 19.63% Black or African American, 0.42% Native American, 0.30% from other races, and 0.55% from two or more races. 1.69% of the population were Hispanic or Latino of any race.