Harleysville is a census-designated place (CDP) in Montgomery County, Pennsylvania, United States. The population was 9,286 at the 2010 census. It is located mostly within Lower Salford Township and also in Franconia Township.