whereparcel

Stuck on integration? Have a question? The developer is standing by.

Guide 8 min read

UPU S10 Tracking Number Format: Decode & Check Yours

Every international tracking number is 13 characters: 2 letters + 9 digits + 2-letter country code. See what yours means — and check it free.

WhereParcel Team

If you’ve ever looked at an international tracking number like LX302765115CN or EE123456785US and wondered why every postal service in the world produces numbers in the same shape, the answer is the UPU S10 standard.

This is the format used by every member country of the Universal Postal Union for cross-border letters and parcels. Once you understand it, you can validate tracking numbers, identify the originating country, and even spot typos before sending an API request.

This guide breaks the format down to the character, including the often-skipped check-digit math.

Just want to check a number you’re holding? Paste it into our free Tracking Number Validator — it reads the S10 parts and names the carrier. No signup.

What Is UPU S10?

The Universal Postal Union (UPU) is the United Nations agency that coordinates international mail. S10 is one of its technical standards, defining a 13-character identifier used on items sent across borders through the postal system.

The format is fixed:

Format: AA NNNNNNNN N AA
        │  │        │ │
        │  │        │ └─ 2-letter ISO country code of the origin
        │  │        └─── Check digit (1 digit, computed from the serial)
        │  └──────────── 8-digit serial number
        └─────────────── 2-letter service indicator

Total length: 13 characters. 2 letters + 9 digits + 2 letters. That phrase shows up in dozens of search queries because it’s the single most useful way to remember the structure.

Breaking Down the 13 Characters

Characters 1–2 — Service Indicator (2 letters)

The first two letters tell you what kind of postal service the item used. The first letter is the service category, the second letter is a specific service variant within that category.

First letterService categoryExamples
EExpress Mail Service (EMS)EE, EA, EM (priority international)
RRegistered MailRR, RA, RX (signed-for letters)
CInsured ParcelCC, CP, CX (tracked parcels)
LLetter Post (signed)LL, LX, LZ (small letter packets)
VInsured LetterVV, VR (declared-value letters)
UUnregistered untrackedUA, UB (rare)

Examples in the wild:

  • EE... — EMS Express
  • RR... — Registered Mail
  • LX... — Tracked letter / small packet
  • CP... — International Parcel

Characters 3–10 — 8-Digit Serial Number

Eight numeric digits, assigned sequentially by the originating postal operator. Nothing special about them on their own — but the next character depends on them.

Character 11 — Check Digit (1 digit)

This is the only character that matters for validation, and it’s the one most engineers miss. The check digit is computed from the 8 serial digits using a fixed weighted-sum formula.

Algorithm:

  1. Multiply each of the 8 serial digits by a fixed weight: [8, 6, 4, 2, 3, 5, 9, 7]
  2. Sum the products
  3. Compute remainder = sum mod 11
  4. The check digit is:
    • 0 if remainder == 1
    • 5 if remainder == 0
    • otherwise 11 - remainder

JavaScript:

function s10CheckDigit(serial8) {
  const weights = [8, 6, 4, 2, 3, 5, 9, 7];
  const sum = serial8
    .split('')
    .reduce((acc, ch, i) => acc + Number(ch) * weights[i], 0);
  const r = sum % 11;
  if (r === 1) return 0;
  if (r === 0) return 5;
  return 11 - r;
}

function isValidS10(trackingNumber) {
  if (!/^[A-Z]{2}\d{9}[A-Z]{2}$/.test(trackingNumber)) return false;
  const serial = trackingNumber.slice(2, 10);
  const claimed = Number(trackingNumber[10]);
  return s10CheckDigit(serial) === claimed;
}

This catches the most common error — a single mistyped digit — without making any API call.

Characters 12–13 — Country Code (2 letters)

The final two characters are the ISO 3166-1 alpha-2 country code of the postal service that originated the item — not the destination.

CodePostal operator
USUSPS — United States Postal Service
GBRoyal Mail — United Kingdom
CNChina Post
JPJapan Post
DEDeutsche Post
FRLa Poste
CACanada Post
AUAustralia Post
SGSingapore Post
INIndia Post
NLPostNL

So LX302765115CN is a tracked letter shipped from China, regardless of where it’s headed.

Examples by Major Postal Carrier

Tracking numberServiceOrigin
EE123456785USUSPS Priority Mail International / EMSUnited States
CP111222332CACanada Post International ParcelCanada
RR471012436GBRoyal Mail Tracked & SignedUnited Kingdom
RA520619370DEDeutsche Post Einschreiben (Registered)Germany
EM704158269AUAustralia Post Express Courier InternationalAustralia
RR987654326JPJapan Post Registered MailJapan
LX302765115CNChina Post tracked small packetChina

Every check digit in this table is valid — run any of them through the validator below.

What S10 Does NOT Cover

S10 is for international postal items only. Domestic-only tracking numbers and private courier numbers use completely different formats:

  • USPS domestic — 20–22 digits (9400 1xxx..., 9405 5xxx...)
  • UPS — 1Z + 16 alphanumeric (1Z999AA10123456784)
  • FedEx — 12, 15, or 20 digits
  • DHL Express — 10 digits, no letters
  • Yamato, Sagawa — purely numeric, no S10 prefix

If a tracking number you’re handed doesn’t match ^[A-Z]{2}\d{9}[A-Z]{2}$, it isn’t S10. It might still be a perfectly valid tracking number — just from a different format family.

For a fuller breakdown of those domestic formats, see Understanding Tracking Number Formats by Carrier.

Common Misconceptions

  • “The country code is the destination.” No — it’s the origin. A ...US number was sent from the United States, even if it ends up in Germany.
  • “The check digit is just a random digit.” It isn’t — it’s deterministic. If your input fails the check, the number is wrong.
  • “All international tracking is S10.” No. Many private couriers (DHL Express, FedEx, UPS) carry international shipments under their own non-S10 numbering.
  • “Lowercase is fine.” S10 numbers are always uppercase. Normalize the input before validating.

Validating S10 in Practice

Combine the regex shape check with the check-digit math. Here’s a complete validator that handles whitespace, case, and the math in one function:

function validateS10(input) {
  const cleaned = input.replace(/[\s\-]/g, '').toUpperCase();
  if (!/^[A-Z]{2}\d{9}[A-Z]{2}$/.test(cleaned)) {
    return { valid: false, reason: 'wrong_shape' };
  }
  const serial = cleaned.slice(2, 10);
  const claimed = Number(cleaned[10]);
  const weights = [8, 6, 4, 2, 3, 5, 9, 7];
  const sum = serial.split('').reduce((a, c, i) => a + Number(c) * weights[i], 0);
  const r = sum % 11;
  const expected = r === 1 ? 0 : r === 0 ? 5 : 11 - r;
  if (expected !== claimed) {
    return { valid: false, reason: 'check_digit_mismatch', expected };
  }
  return {
    valid: true,
    service: cleaned.slice(0, 2),
    serial,
    countryCode: cleaned.slice(11, 13),
  };
}

This is good enough for client-side validation, customer-input forms, and pre-API filtering. It catches both “user typed it wrong” and “this isn’t actually a tracking number.”

Detect, Then Track, with WhereParcel

Even with perfect S10 validation, you still don’t know which postal operator to query — only the country of origin. You’d then need to map US → USPS, GB → Royal Mail, etc., and decide whether the destination’s postal service is also worth querying for inbound visibility.

WhereParcel does the mapping for you in two calls. POST /v2/detect matches the number against the formats of every live carrier — it’s free, makes no carrier lookup and doesn’t count toward your usage. Then track the number with the best match.

# 1. Find the carrier — free: format matching only, no lookup, no usage
curl -X POST https://api.whereparcel.com/v2/detect \
  -H "Authorization: Bearer YOUR_API_KEY:YOUR_SECRET_KEY" \
  -H "Content-Type: application/json" \
  -d '{"trackingNumber": "EE123456785US"}'

# 2. Track it with the best match (here us.usps)
curl -X POST https://api.whereparcel.com/v2/track \
  -H "Authorization: Bearer YOUR_API_KEY:YOUR_SECRET_KEY" \
  -H "Content-Type: application/json" \
  -d '{"trackingItems": [{"carrier": "us.usps", "trackingNumber": "EE123456785US"}]}'
{
  "success": true,
  "data": {
    "normalized": "EE123456785US",
    "candidates": [
      { "code": "us.usps", "name": "USPS (United States Postal Service)", "country": "US", "specificityScore": 69 },
      { "code": "intl.deutsche-post", "name": "Deutsche Post International", "country": "INTL", "specificityScore": 5 }
    ],
    "noMatch": false
  }
}

Several carriers accept the generic S10 shape, so /v2/detect can return more than one candidate (the response above is abridged). Pick the one with the highest specificityScore — here the US suffix makes us.usps the clear winner.

You write the validator once, the API takes over for the actual lookup.

Summary

The UPU S10 format is 2 letters + 9 digits + 2 letters:

  • 2-letter service indicator (E/R/C/L/V/U + variant)
  • 8-digit serial
  • 1 check digit (deterministic, weighted-sum formula)
  • 2-letter ISO country code (origin, not destination)

That’s it. Once you have the regex and the check-digit math, you can validate any S10 tracking number in any language in about 20 lines of code.

For the actual cross-carrier lookup, see the WhereParcel docs — POST /v2/detect checks a number against all 39+ live carriers (request additions anytime).

Or paste any number into our free Tracking Number Validator — it auto-detects USPS, UPS, FedEx, DHL, OnTrac, UPU S10, and more from the format alone (no signup needed).


Related guides:

Can't find your carrier? We add new carriers on request — just let us know.

Request a carrier →

Got a question? Just ask. Drop by our Discord — the developer behind WhereParcel reads every message and replies personally. No bots, no tickets, just a real conversation.

Join Discord → Join Slack →

Tags: #tracking-numbers #upu #s10 #format #international-mail #validation #check-digit