Area code 717 is an area code for Pennsylvania. It was one of the first area codes created in 1947. It initially covered the entire central portion of the state, but after it was split by 570 in 1998, it now covers the southern central portion of the state. It consists of towns including its capital city, Harrisburg, Lancaster, and York. It was overlaid by 223 in 2017.