DevTools Logo

USPS Tracking Number Generator

UPS, FedEx, DHL and USPS are trademarks of their respective owners. DevTools is not affiliated with or endorsed by them. Generated numbers are test data: never use them as proof of shipment, on a real shipping label, or in a marketplace or customer dispute.

USPS Tracking Number Generator

Generate 22-digit USPS IMpb tracking numbers with GS1 Mod-10 check digits — synthetic mock data only

Runs in your browser

For Development & Testing Purposes Only - Synthetic Mock Data

Settings

1 value

Generates one value with a valid checksum. Use Bulk for up to 500 records, or press ⌘/Ctrl+Enter for a fresh one.

Generated value

No value yet

Set options, then press Generate.

Generated values are valid in shape but randomized (Test Data).

Legal Disclaimer: Generated data is for software testing and validation purposes only (e.g. verifying input masks, form validation, or database seeding). It is randomly generated and not taken from any real record, but a random value can coincidentally match a real, issued number, so never use it in real applications, payments, KYC or official forms. Using it to impersonate real people or for any fraudulent activity is illegal.

    About this tool

    The USPS Tracking Number Generator produces 22-digit Intelligent Mail Package Barcode (IMpb) tracking numbers with valid GS1 Mod-10 check digits. You can filter by common USPS service prefixes including 9400 (Priority Mail / Ground Advantage), 9407 (Certified Mail), 9270 (Priority Mail Express), and 9302 (Return Service).

    Each generated IMpb number passes standard USPS length and GS1 check-digit validation in e-commerce checkout and ERP webhooks, and includes a client-side Code128 barcode preview.

    How to use this tool

    1. Select a USPS service prefix

      Pick 9400, 9407, 9270, or 9302 to match the mail class under test.

    2. Generate single or bulk

      Generate one tracking number with barcode preview or up to 500 rows in Bulk.

    3. Validate existing IMpb codes

      Paste a 20–22 digit USPS code in Validate to verify its GS1 Mod-10 check digit.

    USPS IMpb prefixes

    PrefixMail Class
    9400Priority Mail / Ground Advantage
    9407Certified Mail
    9270Priority Mail Express
    9302USPS Return Service

    22-digit GS1 Mod-10 test values only; not registered with USPS.

    Frequently asked questions

    What USPS IMpb service prefixes can I generate?

    You can generate 22-digit numbers starting with 9400 (Priority / Ground Advantage), 9407 (Certified), 9270 (Express), and 9302 (Return Service).

    How is the USPS check digit calculated?

    USPS IMpb tracking numbers use the GS1 weighted Mod-10 algorithm (alternating 3× and 1× weights counted from the right).

    Are these registered with USPS?

    No. All values are synthetic mock fixtures for software testing and must not be used on real mailpieces.