Topsfield is a census-designated place (CDP) in the town of Topsfield in Essex County, Massachusetts, United States. The population was 2,717 at the 2010 census.