Dallastown is a borough in York County, Pennsylvania, United States. The population was 4,195 at the 2020 census. It is part of the York–Hanover metropolitan area.