Skip to content

Area code 717

Area code 717 covers Harrisburg, Lancaster and 23 more places in Pennsylvania.

Pennsylvania, the United States

Area code
717
Region
Pennsylvania
Country
the United States
Main cities
Harrisburg, Lancaster, York, Chambersburg, Lebanon, Carlisle
Time zones
America/New_York
In service since
January 1, 1947
Overlays
223
Prefixes assigned
784
Pooled prefixes
559 (71%)
Carriers holding prefixes
41

About area code 717

Area code 717 serves Pennsylvania in the United States. The exchanges in this code are mostly assigned to Harrisburg, York, Lancaster, Mechanicsburg, Chambersburg. It has been in service since January 1, 1947.

Phone numbers in this area code follow the America/New York time zone.

It shares its territory with the overlay code 223: new numbers in the same area can get either code, so a ten-digit number is needed even for local calls.

A number in this area code is written (717) NXX-XXXX in the United States and Canada, and +1 717 NXX XXXX in international format, where NXX is a three-digit exchange that starts with 2 to 9.

An area code tells you where a number was first assigned, not where its owner is: mobile numbers keep their area code when people move, and numbers can be ported between carriers.

Harrisburg holds 19% of the phone prefixes in area code 717.

A prefix is the three digits after the area code. NANPA assigns each one to a carrier for a rate center, and the place below is the one that rate center belongs to. Most numbers in a prefix were first handed out in that place, but mobile numbers stay with their owners when they move.

PlacePrefixesShare
Harrisburg152
19.4%
Lancaster99
12.6%
York83
10.6%
Chambersburg30
3.8%
Lebanon29
3.7%
Carlisle24
3.1%
Mechanicsburg18
2.3%
Hanover15
1.9%
Lewistown14
1.8%
Hershey13
1.7%
Gettysburg9
1.1%
Middletown9
1.1%
Columbia8
1%
New Oxford7
0.9%
Ephrata6
0.8%
Hummelstown6
0.8%
Red Lion6
0.8%
Waynesboro6
0.8%
Elizabethtown5
0.6%
Lititz5
0.6%
Palmyra5
0.6%
Shippensburg5
0.6%
Annville4
0.5%
Camp Hill4
0.5%
Dauphin4
0.5%

Verizon Pennsylvania, Inc. holds the most prefixes in area code 717: 121 of 784.

These counts are prefixes, not phone numbers or customers. A pooled prefix is split between carriers in blocks of 1,000 numbers, and any number can be ported to another carrier after it is assigned, so check the carrier of a given number with the lookup.

559 of the 784 prefixes (71%) are pooled: their numbers are handed to carriers in blocks of 1,000.

3 prefixes in area code 717 were assigned since 2021.

NANPA's public file dates 262 of the 784 prefixes in this area code. The others carry no assignment date in the file.

NANPA's public file dates 262 of the 784 prefixes in this area code. The others carry no assignment date in the file.
  1. 2001: 27
  2. 2002: 38
  3. 2003: 4
  4. 2004: 1
  5. 2005: 4
  6. 2006: 18
  7. 2007: 16
  8. 2008: 21
  9. 2009: 24
  10. 2010: 7
  11. 2011: 12
  12. 2012: 12
  13. 2013: 5
  14. 2014: 12
  15. 2015: 17
  16. 2016: 22
  17. 2017: 17
  18. 2018: 1
  19. 2020: 1
  20. 2021: 2
  21. 2024: 1
20012024

Each of the 784 prefixes in area code 717 has its own page.

Prefixes are grouped by place. Open one to see the carrier it was assigned to, its rate center, its assignment date and whether it is pooled.

Harrisburg 152

Elizabethville 3

McConnellsburg 3

Mount Gretna 3

Spring Grove 3

Stewartstown 3

Wrightsville 3

York Springs 3

Belleville 2

East Berlin 2

Fayetteville 2

Littlestown 2

Loysville 2

Marietta 2

Marysville 2

McAlisterville 2

Millersburg 2

Mount Holly Springs 2

Newville 2

Peach Bottom 2

Reedsville 2

Tower City 2

Liverpool 1

McVeytown 1

New Cumberland 1

Willow Street 1

Frequently asked questions

Where is area code 717?
Area code 717 is in Pennsylvania, the United States. Most of its prefixes belong to Harrisburg, Lancaster, York, and Chambersburg.
What time zone is area code 717 in?
Phone numbers with area code 717 follow America/New York. The area code shows where a number was first assigned, so the person you call may be somewhere else.
Which phone carriers use area code 717?
Verizon Pennsylvania, Inc., Brightspeed Of Pennsylvania, LLC, and New Cingular Wireless PCS, LLC hold the most prefixes in area code 717, according to NANPA's assignment file of November 23, 2026. A number may have been ported to another carrier since, and the free lookup reads the number itself.
Is a call from area code 717 a scam?
Not because of the area code. Caller ID can be spoofed to show any number, so a 717 number on your screen may not come from Pennsylvania. Look the number up, and do not share codes, passwords or payment details with a caller you did not expect.

Prefix assignments from the NANPA central office code assignment file of November 23, 2026; places from Google's libphonenumber geocoding data.

Put this check in your product

Get an API key in under a minute. 100 free credits every month, no card required.

  • 100 free credits a month
  • No card
  • Test keys spend nothing
  • Cancel any time