Dillsburg is a borough in York County, Pennsylvania, United States. The population was 2,643 as of the 2020 census. It is part of the York–Hanover metropolitan area.