Area code lookup widget

Put an area code lookup on your own page with two lines of HTML. A visitor types three digits and sees the state or province, the country and the other area codes in the same region.

This is the real widget. Type any area code in the United States or Canada.

Embed code

Paste both lines where the widget should appear. The script is loaded once, even with several widgets on a page.

<div class="lookvalid-area-code" data-code="312" data-size="420"></div>
<script async src="https://lookvalid.com/widgets/area-code.js"></script>

How it works

The script makes one request for a single static file and answers every lookup inside the visitor's browser. It sets no cookies, uses no browser storage, loads no analytics and needs no key.

Sizes

Widget sizes
data-sizeWidthGood for
300300 pixels wideA sidebar, a footer or a narrow column.
420420 pixels wideThe default, a good fit for an article or a contact page.
fullThe full width of its containerA wide layout where the widget should line up with the text around it.

Attributes

Widget attributes
AttributeValuesWhat it does
class="lookvalid-area-code"Required on the divMarks the element the widget fills. The attribute data-lookvalid-area-code works the same way.
data-codeThree digits, optionalAn area code to show when the page loads. Left out, the field starts empty.
data-size300, 420 or fullThe width of the widget. Left out, it is 420.
data-credittrue or falseShows or hides the small LookValid link under the field. Left out, the link is shown.

Data source

The 427 geographic area codes in service for the United States and Canada come from the North American Numbering Plan Administrator NPA report, file dated 2026-10-17. This widget is run by LookValid. It is not connected to any agency, company or service named on this page.

Frequently asked questions

Does the widget set cookies or track my visitors?

No. It sets no cookies, writes nothing to browser storage, loads no analytics and needs no key. It makes one request for the data file and then answers every lookup inside the visitor's browser.

Which area codes does it cover?

It covers the 427 geographic area codes in service for the United States and Canada in the NANPA report dated 2026-10-17. For each code it shows the state or province, the country and the other codes assigned to the same region.

Can I put more than one widget on a page?

Yes. Add one div for each widget and load the script once. The data file is requested a single time and shared by every widget on the page.

Will my site's styles break the widget, or the widget break my site?

Neither. The widget draws inside its own isolated style scope, so your CSS does not reach it and its CSS does not leak out. It adds no global styles and only one global name, LookValidAreaCode.

How current is the data, and how do I get updates?

The file carries the date of the NANPA report it was built from (2026-10-17). The script loads the file from lookvalid.com each time, so a refreshed file reaches every embed without any change on your page.