USPS Widgets

USPS® Widgets are made for small businesses to easily integrate USPS tools and applications into their own websites. Below you can learn what widgets are available and how to use them.

Are you a larger business looking for more customization? Learn more about USPS APIs.

Using USPS Widgets

Before attempting to use USPS Widgets, you should become familiar with how HTML iframe works and the different options that are native to the iframe element. The individual user guides have more information on using iframe in specific web builders.
Learn more about HTML iframe

USPS Widgets Documentation

Expand All

USPS Address Validation

The USPS Address Validation widget allows customers on your website to ensure quick and efficient delivery by confirming the address information they provide is accurate.

Show More

By taking the information your customer provides, this widget compares address data to official information provided by USPS. It will also fill in additional information that some customers may not know exists – such as a ZIP + 4® to better route the delivery.

USPS Address Validation Widget User Guide

How the widget integration shows on your website:

copyCopy HTML: USPS Address Validation Widget

    

<iframe src="https://tools2.usps.com/widgets/addresses?
address=475 L'Enfant Plaza
SW&city=Washington&state=DC" style="height:500px;
width:500px;" title="Iframe Example"><iframe>

An example of how the address validation widget will appear.

USPS Delivery Calculator Widget

The USPS Delivery Calculator widget helps ensure quick and efficient delivery by informing customers of different shipping services available along with estimated delivery dates and times.

Show More

This widget uses the origin ZIP Code and destination ZIP Code, along with the proposed date and time of when the order will be shipped. Customers can filter on different delivery services, such as Priority Mail® or Priority Mail Express®, allowing them to explore different shipping options.

USPS Delivery Calculator Widget User Guide

How the widget integration shows on your website:

copyCopy HTML: Delivery Calculator Widget

    

<iframe src="https://tools2.usps.com/widgets/sdc"
style="height:500px; width:500px;" title="iframe
Example"><iframe>

An example of how the Delivery Calculator widget will appear.

USPS Locations Widget

The USPS Locations widget allows customers to find their nearest Post Office location.

Show More

This widget takes the shippers address and will automatically search for the nearest Post Office within a 20-mile radius. If less specific locations are provided, such as just a city, state, or ZIP Code, then the results will be tailored to that location instead of the more specific address.

USPS Locations Widget User Guide

How the widget integration shows on your website:

copyCopy HTML: USPS Locations Widget: ZIP Code

    
	
<iframe src="https://tools2.usps.com/widgets/locations?
zipcode=20260" style="height:500px; width:500px;"
title="Iframe Example"><iframe>
	
  

copyCopy HTML: USPS Locations Widget: City/State

    
	
<iframe src="https://tools2.usps.com/widgets/locations?
city=Washington&state=DC" style="height:500px;
width:500px;" title="Iframe Example"><iframe>
	
  

copyCopy HTML: USPS Locations Widget: Full Address

    
	
<iframe src="https://tools2.usps.com/widgets/locations?
address=475 L'Enfant Plaza SW&city=Washington&state=DC"
style="height:500px; width:500px;" title="Iframe
Example"><iframe>
	
  
An example of how the Locations widget will appear.

USPS Tracking Widget

The USPS Tracking® widget allows your customers to track USPS packages without leaving your website.

Show More

This widget takes the tracking number and allows customers to view status and package history. It also can link customers directly to USPS.com Tracking to do more with their packages such as add delivery instructions or schedule a redelivery.

USPS Tracking Widget User Guide

How the widget integration shows on your website:

copyCopy HTML: Tracking Widget

    

<iframe src="https://tools2.usps.com/widgets/tracking/
<trackingNumber>" style="height:500px; width:500px;"
title="Iframe Example"><iframe>

										  

copyCopy HTML: USPS Tracking Widget: Current Status Only

    

<iframe src="https://tools2.usps.com/widgets/tracking/
status/<trackingNumber>" style="height:500px;
width:500px;" title="Iframe Example"><iframe>

										  
An example of how the Tracking widget will appear.