Merlist Bulletin

Find the condition that applies

On the Delivery Slip

How Many Digits Are in a USPS Tracking Number?

The United States Postal Service shows a 22-digit package tracking number in its text instructions and a 20-digit number in a sample reply. Its international examples follow another pattern: 13 characters, beginning with two letters, followed by nine digits and ending with two more letters. A count can help a sender recognize the format on a receipt. The characters can identify a service, distinguish one item from another, and help a postal system spot some copying errors.

A clerk's hand steadies a plain cardboard parcel on a dark counter.
A hand steadies a cardboard parcel at a service counter.

Which tracking number formats does USPS show?

In the USPS text guide, the longer numeric example is the number a customer would submit. The letters DND that follow it are a separate keyword for delivery activity, and the space marks where the number ends. In the sample reply, the tracking number is the string after the sender name and before the comma. The first character of that string is a zero, part of the identifier just like the digits that follow it.

The international samples group the digits in threes on the page. The spaces separate the groups; the letters and digits are the characters counted. The examples below pair the length with the context in which USPS shows the number.

Tracking Number Formats in USPS Examples
USPS sampleLength without spacesWhere USPS shows it
920551234567891234567822 digitsNumber before a keyword in a text request
0112345678912345678920 digitsTracking number field in a sample text reply
EC 000 000 000 US13 charactersBoth listed variants of Priority Mail Express International
CP 000 000 000 US13 charactersPriority Mail International
RA 000 000 000 US13 charactersRegistered Mail Service International
LX 000 000 000 US13 charactersFirst-Class Mail International and First Class Package International Service

The longer request and the shorter reply are separate examples. They show two lengths, but comparing them cannot tell a sender which digits, if any, USPS omits for a particular parcel. The barcode specification gives a separate way to see which digits belong to sorting and which belong to tracking.

What do the digits in a domestic package barcode mean?

The Postal Service writes the specification that shippers use to build its Intelligent Mail package barcode, abbreviated IMpb. That barcode is the machine-readable version of the parcel information. USPS uses the term barcode construct for the layout and choice of fields. The Domestic Mail Manual describes a variable-length barcode that carries both tracking and routing data, and the implementation guide identifies which parts of that data make up the tracking number the shipper passes to the customer.

In the guide's package-barcode layouts, the channel application identifier is part of the tracking number. It identifies the channel used in the barcode format. A separate three-digit service type code represents the mail class, the product, the combination of extra services, or a combination of those details, according to the USPS guide. The product is the named postal offering. The mailer ID identifies the party assigned that identifier for mailing, and the serial number distinguishes individual items. The check digit at the end is calculated from the tracking data and gives the system a way to check that the sequence was captured correctly.

What the Domestic Tracking Fields Do
Channel application identifier:
Identifies the channel in the barcode layout.
Service type code:
Represents the postal product, mail class, extra services, or a combination.
Mailer ID:
Identifies the assigned mailer.
Serial number:
Distinguishes the item in the mailer's numbering sequence.
Check digit:
Provides a way to check the sequence for errors.

A barcode can also carry a delivery ZIP Code for sorting. In the USPS implementation guide, 420 is the routing marker that precedes the destination ZIP Code when that routing field is present. The guide says the printed, human-readable version omits both that marker and the routing ZIP Code. A scanner can therefore capture data that the person reading the printed tracking number never sees. The shipper supplies the tracking number, including its channel identifier, in the receipt or message the customer uses for a lookup.

Plain cardboard parcels move along a gray sorting conveyor.
Cardboard parcels travel along the rollers of a sorting conveyor.

The USPS guide gives a commercial-mailer example that makes the difference measurable. Its C01 layout has 34 encoded data digits, including the routing marker and destination ZIP Code. Counting just the fields the guide defines as the tracking number gives 22 digits. In the next layout, C02, the barcode still holds 34 digits, but the tracking portion takes 26 of them. In C02, the destination ZIP Code is shorter and the item serial number is longer. A scanner can therefore read the same total number of digits from two barcodes whose tracking numbers have different lengths.

The guide's commercial examples use 92 with a nine-digit mailer ID and 93 with a six-digit mailer ID. A system reading those layouts can use the starting digits to tell how wide the mailer ID field is; the service field follows the channel identifier. USPS points customers who want to confirm the mail class to the Product Information section of the tracking record. The service appears there by name, without the reader having to decide which layout produced the number on the receipt.

What do the letters and digits in an international number mean?

The Universal Postal Union, which sets standards for exchanging mail internationally, defines this layout as S10. Its first two letters form the service indicator. For codes intended for use across designated postal operators, the first letter identifies the type of product or service, and the sending operator selects the second from an allowed range. The serial number occupies the next eight characters, and the ninth digit is a check digit derived from that serial number. The final two letters identify the country under whose authority the code was issued. In the USPS examples, US fills that last field.

The Universal Postal Union explains the gaps in printed samples: "Spaces may be inserted to enhance readability." A later instruction in the standard is for postal operators capturing the code by hand: the spaces are left out at entry or removed by the system. The grouped print version and the continuous string contain the same letters and digits.

The International S10 Identifier by Position
PositionCharacter typeField
1 and 2LettersService indicator
3 through 10DigitsItem serial number
11DigitCheck digit
12 and 13LettersIssuing country code

The postal union illustrates the difference between a serial number and a check digit with the serial 47312482. Its calculation gives a check digit of 9, making the complete numeric part 473124829. The last digit depends on the digits before it. A clerk or system recapturing the number can use it to detect some substitutions or swapped digits. Whether the item has a recorded movement is a separate question answered by the tracking record.

The country code stays with the identifier as the item passes from one postal operator to another. A city in a tracking update belongs to that event. The last letters of the identifier record whose authority issued it.

The issuing country can also differ from the place the item was sent. The postal union gives the example of Swiss Post, which operates postal exchange offices outside Switzerland. Items dispatched from those offices still use the Swiss country code, CH. The letters record whose authority issued the identifier; the mailing record gives the place of dispatch.

The service letters give a postal operator a category to work with. The postal union, for instance, assigns the range RA through RZ to registered letter post, which explains why RA works as the example in the USPS table. For a customer, the letters can narrow the possibilities. How much tracking detail comes back for an international item depends on the service and can also depend on the destination, USPS says. The format describes how the item is identified across postal systems; the available event record depends on what those systems provide for that mailing.

Where does the tracking number end in a text reply?

The sender’s mailing receipt supplies the tracking number. In a text reply, the identifier occupies its own field before the comma in the standard status example. The ZIP Code in the pickup location later in that message describes where the item was reported available. It belongs to the update, separate from any ZIP Code carried as routing data in a barcode.

The Postal Service, which operates the text service, explains what a sender or recipient receives after submitting the number: "The text reply from USPS will be the latest tracking information for the item." The response carries an identifier and a status, with the date, time, and location in most instances. USPS says the reply may omit ZIP Code routing information from the start of the displayed number. The receipt is the reference when a customer needs the original tracking string; the text reply is a view of information attached to the item.

One reason to distinguish the number from the rest of a reply is that USPS also uses the number in messages about requests rather than parcel movements. The text guide gives a confirmation saying an alert has been set for its sample number. In that message, the item identifier connects the request to a particular parcel, and the words around it record what the text system has done. A status reply uses the identifier to point to the same kind of item record, but the adjoining words describe what has been reported about the parcel itself.

Identifying the Number in a USPS Text Exchange
MessageWhere the identifier appearsAdjacent information
Request with keywordBefore the keywordThe kind of update requested
Status replyAfter USPS and before the comma in the sampleStatus and usually a date, time, and location; leading routing information may be omitted
Alert confirmationAfter the words announcing the alert in the sampleAcknowledgment of the request
A mail carrier places a plain padded mailer into an open curbside mailbox.
A carrier slips a padded mailer into a curbside mailbox.

The text guide shows what happens when the customer requests a delivery-date update rather than the latest event. USPS uses the same sample identifier as in its pickup message and follows it with the next expected step in that example: delivery by Monday, September 11, 2017.

Frequently Asked Questions

Can a USPS tracking number have 20 digits?

Yes. The Postal Service's sample text response begins its tracking string with a zero and preserves it in the confirmation examples too. Treating the number as a text identifier preserves that leading character when the record is copied.

Do the zeros in USPS's international tracking samples stand for actual digits?

USPS uses zeros as placeholders for possible digits and X as a placeholder for a possible letter in the international table. The postal union also allows leading zeros in an assigned serial number, so the zeros on a real receipt are part of the item identifier and should stay in the same positions.

Can two international USPS services show the same sample tracking format?

Yes. The USPS reference gives the same letter pattern for First-Class Mail International and First Class Package International Service. Those entries illustrate a shared pattern; the item-specific record gives the service for a particular mailing.

What date and location information can appear in a USPS text tracking reply?

The USPS pickup example puts 4:55 a.m. and Bowie, Maryland 20701 after the status. That city and ZIP Code sit outside the tracking number field, which ends before the comma. The guide says dates usually accompany tracking information, but that particular pickup example shows only a time and place.

Sources

  • United States Postal Service: USPS Text Tracking™ FAQs
  • United States Postal Service: International Inquiries - The Basics
  • United States Postal Service: USPS Tracking® - The Basics
  • United States Postal Service: Domestic Mail Manual: Barcode Standards
  • United States Postal Service: Publication 199: Intelligent Mail Package Barcode Implementation Guide
  • Universal Postal Union: S10: Identification of Postal Items, 13-Character Identifier