Short answer
Start with the shape. Two letters, nine digits and two letters, like LX202611249CN, is a UPU S10 postal number, and the last two letters are the country it was issued in. 1Z followed by 16 letters and digits is UPS. An all-digit number starting with 92, 93 or 94 is USPS. Parcelgrove reads YT as YunExpress, LP followed by digits as Cainiao, 4PX as 4PX, SY as Sunyou and YW, UY or JYM as Yanwen. Prefixes overlap and numbers get reused, so only the carrier's answer to the full number confirms it.
Sometimes a tracking number reaches you without a carrier name you recognize, and the number itself already says a lot. Here are the official formats, the China line prefixes exactly as Parcelgrove's engine reads them, a check digit you can work out by hand, and the cases where the shape points to the wrong carrier.
The short version
- UPU S10: 13 characters, a 2-letter service indicator, an 8-digit serial number, 1 check digit and the 2-letter ISO code of the issuing country.
- UPS: 1Z plus 16 letters and digits, 18 characters in all, upper case.
- USPS: all digits, starting with 92, 93 or 94, then a service code, the mailer ID, a serial number and a check digit; 22 or 26 digits in the usual commercial forms.
- China lines in Parcelgrove: YT for YunExpress, LP plus digits for Cainiao, 4PX, SY for Sunyou, YW, UY or JYM for Yanwen, WNB for Wanb Express, HH for HuaHan, TJ or TS for TaiJia.
- Prefixes collide and numbers come back after a year or less, so detection needs the whole number and the carrier's answer.
How do you identify a carrier from a tracking number?
Read the shape first, then let the carrier confirm. In practice:
Clean the number
Remove spaces and dashes. USPS prints its numbers in groups of four, and a scanned USPS barcode can carry an extra 420 and a ZIP code at the front that are not part of the tracking number.
Read the letters at each end
Two letters, nine digits and two letters is a UPU S10 postal number. 1Z at the start is UPS. Letters such as YT, LP or 4PX point to a Chinese line.
Count the characters
S10 numbers have 13 characters and UPS 1Z numbers have 18. USPS domestic numbers are all digits, usually 22 or 26 of them.
Check the check digit
S10 and USPS numbers contain a check digit computed from the other digits. If it does not match, the number has a typo.
Let the carrier confirm
Only the carrier's answer settles it. If the carrier you guessed does not know the number, try the next candidate before deciding the number is wrong.
What is the UPU S10 format?
S10 is the Universal Postal Union standard for identifying postal items: registered letters, tracked small packets, parcels and EMS. Its identifier always has 13 characters in four parts.
The first letter of the service indicator gives the type of item: E for EMS, C for parcel post, R for registered letter post, L for tracked letter post, V for insured letter post, U for letter-post items containing goods without customer-facing tracking, H for ECOMPRO parcels. The serial number always has eight digits, padded with leading zeros.
The last two letters are the ISO 3166-1 code of the UPU member country under whose authority the number was issued: CN for China, US for the United States, FR for France. The standard itself warns that this code is not a reliable indicator of where the item started, because some posts run offices of exchange in other countries; Swiss Post, for example, uses CH on items sent from its offices abroad.
Five letter pairs never start an S10 number: JA to JZ, KA to KZ, SA to SZ, TA to TZ and WA to WZ are reserved to avoid confusion with other barcodes.
| Characters | Part | Fictitious example |
|---|---|---|
| 1 to 2 | Service indicator (letters) | LX (tracked letter post) |
| 3 to 10 | Serial number (8 digits) | 20261124 |
| 11 | Check digit | 9 |
| 12 to 13 | Country code (ISO 3166-1) | CN |
How do you check an S10 check digit?
The 11th character is computed from the serial number with a method the UPU calls weighted modulus 11. Here it is on the fictitious number LX 20261124 ? CN. The UPU also offers a validation tool on its website.
Multiply each digit by its weight
The weights are 8, 6, 4, 2, 3, 5, 9 and 7. For 2 0 2 6 1 1 2 4, that gives 16, 0, 8, 12, 3, 5, 18 and 28.
Add the results
16 + 0 + 8 + 12 + 3 + 5 + 18 + 28 = 90.
Divide by 11 and keep the remainder
90 is 8 times 11 plus 2, so the remainder is 2.
Subtract the remainder from 11
11 minus 2 gives 9, so the full number is LX202611249CN. If the result is 10, the check digit is 0; if it is 11, the check digit is 5.
Use it to catch typos
Swap the last two digits of the serial (20261142) and the same calculation gives 5, not 9: the number as typed cannot be right.
What do UPS, USPS, FedEx and DHL tracking numbers look like?
Each of the large couriers documents its own formats. Here is what their official documentation says, as read on 24 November 2026.
| Carrier | What the number looks like | Worth knowing |
|---|---|---|
| UPS | 1Z, then 16 letters and digits: 18 characters, upper case | UPS asks shippers not to reuse a 1Z number for at least one year. UPS also tracks other references, such as Mail Innovations and freight numbers. |
| USPS | All digits: 92, 93 or 94, then a 3-digit service type code, the mailer ID, a serial number and a final check digit. 22 or 26 digits in the commercial forms | Printed in groups of four. A scanned barcode can add 420 and the ZIP code in front. A serial only has to stay unique for 120 days. |
| FedEx | Digits. From 31 May 2022, FedEx replaced 15-digit Ground numbers with 12-digit FedEx tracking numbers on Ground Economy labels created through its APIs | Door tags left after a missed delivery start with DT followed by 12 digits. |
| DHL | Depends on the division: Express, Parcel Germany, eCommerce and others issue their own numbers | DHL's developer support explains that one shipment can carry IDs from two divisions, so a lookup can return another division's history. |
Which Chinese line prefixes does Parcelgrove recognize?
These are the number rules in Parcelgrove's tracking engine on 24 November 2026. A rule tells the app which carrier to ask first, and the carrier's answer confirms it.
Numbers that fit none of these rules, from USPS to Royal Mail, are detected from their format and the carrier's answer, across more than 3,300 carriers. When the first carrier asked does not know a number, Parcelgrove keeps looking.
| The number starts with | Parcelgrove reads it as | Watch out for |
|---|---|---|
| YT, then digits | YunExpress | |
| LP, then digits only | Cainiao | An S10 tracked letter can also start with LP, but ends with a country code |
| 4PX | 4PX | |
| SY | Sunyou | |
| YW, UY or JYM | Yanwen | UY followed by nine digits and CN also has the S10 shape |
| 9 or 10 digits, nothing else | A possible Yanwen number | Many carriers issue all-digit numbers |
| WNB | Wanb Express | |
| HH | HuaHan | HA to HZ is also the S10 range for ECOMPRO parcels |
| TJ or TS | TaiJia (TakeSend) | |
| 2 letters, 9 digits, CN | China Post (S10 format) | CN is the issuing country, not proof of where the parcel left from |
Why is a prefix not enough to identify the carrier?
The same first letters mean different things to different carriers, and numbers come back. These are the cases that matter for a store shipping from China:
- UY…CN fits two rules. Parcelgrove reads UY as Yanwen, and the same number has the S10 shape, where UA to UZ is the range for letter-post items containing goods without customer-facing tracking.
- LP can be Cainiao or a tracked postal item. In Parcelgrove's rule, Cainiao numbers are LP followed only by digits; an S10 tracked letter can also start with LP but has nine digits and a country code. The end of the number settles it.
- HH is HuaHan for Parcelgrove, and HA to HZ is the S10 range for ECOMPRO parcels from any post. The HuaHan rule only looks at the first two letters, so the carrier's answer decides.
- All-digit numbers are the hardest case. Parcelgrove treats a 9 or 10 digit number as a possible Yanwen number, but FedEx uses 12 digits, USPS 22 or more, and many smaller carriers use digits too.
- One parcel can have two numbers. DHL documents shipments that carry IDs from two of its divisions, and many cross-border lines hand the parcel to a local carrier that gives it a new number.
- Numbers are reused. An S10 number must not be reused within 12 months and the UPU recommends 24; UPS asks for at least a year; a USPS serial only has to be unique for 120 days. If the first scans are older than your order, you may be looking at someone else's parcel.
- The country code is not the origin: a number ending in CH can leave from a Swiss Post office in another country.
Which prefixes cannot be confused with a postal number?
Some line prefixes can never collide with S10. 4PX starts with a digit, and SY, TJ, TS, WNB and JYM start with letter pairs the standard reserves (SA to SZ, TA to TZ, WA to WZ, JA to JZ). A number that starts with one of them is not an S10 postal item, whatever its length.
What should you do when a number is not recognized?
Look for a typo
Compare the number with the supplier's email, check the letter O against the digit 0, and run the S10 check digit if it has that shape.
Ask the supplier
Ask which carrier and which service they used, and whether a local tracking number will follow once the parcel reaches the destination country.
Wait for the first scan
A label can exist before the carrier has scanned the parcel. Until then, the carrier may simply not know the number yet.
Let your tracking tool match it
In Parcelgrove, the carrier is detected when the order is fulfilled in Shopify, without choosing anything, and the parcel stays followed when a local carrier takes over with its own number.
Sources
- Universal Postal Union: S10, identification of postal items, 13-character identifier (S10-12)
- UPS API documentation: Shipping API specification (1Z rules, length 18)
- UPS: PLD segments (1Z tracking numbers must not be reused for at least one year)
- USPS Publication 199: Intelligent Mail Package Barcode (IMpb) Implementation Guide, version 29
- FedEx Developer Portal: April 2022 FedEx Ground Economy announcements
- FedEx Developer Portal: Basic Integrated Visibility (Track API) documentation
- DHL API Developer Portal support: tracking a shipment ID returns another shipment ID
Questions
What does CN at the end of a tracking number mean?
On a 13-character number with two letters at the start, CN is the S10 country code: the number was issued under China's authority. The UPU standard notes that this code does not reliably show where the parcel physically left from.
Can two carriers use the same tracking number?
Yes. Prefixes overlap between lines and postal ranges, DHL divisions can issue different IDs for the same shipment, and numbers are reused after a period: 12 months at least for S10, a year for UPS 1Z, 120 days for a USPS serial.
Why is my USPS number longer when I scan the barcode?
The barcode can start with 420 and the destination ZIP code. USPS Publication 199 says those are left out of the printed number, so drop them: the tracking number starts at 92, 93 or 94.
Do I need to tell Parcelgrove which carrier a number belongs to?
No. When an order is fulfilled in Shopify, Parcelgrove reads the number, uses rules like the ones above to choose which carrier to ask first, and lets the carrier's answer confirm it.