Williamsfield is a village in Knox County, Illinois, United States. The population was 578 at the 2010 census. It is part of the Galesburg Micropolitan Statistical Area.