Spencer is a census-designated place (CDP) in the town of Spencer in Worcester County, Massachusetts, United States. The population was 5,700 at the 2010 census.