DevTools Logo

UPU S10 Tracking Number Generator

UPU S10 Tracking Number Generator

Generate and validate international postal item identifiers (UPU S10, e.g. RB123456785GB) with the mod-11 check digit and an ISO country code — 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. 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. DevTools accepts no liability for how generated data is used.

    Examples

    Worked check digit

    Input
    12345678
    Output
    RB123456785GB

    The weighted sum is 8+12+12+8+15+30+63+56 = 204; 204 mod 11 = 6 and 11 − 6 = 5, so the check digit is 5.

    EMS item from the United States

    Input
    EE123456785US
    Output
    Valid

    Service letter E, the same serial and check digit, and US as a valid ISO alpha-2 country code.

    Wrong check digit

    Input
    RB123456786GB
    Output
    Check digit is 6 but serial 12345678 requires 5

    The serial 12345678 always requires check digit 5, so any other digit fails validation.

    About this tool

    The UPU S10 Tracking Number Generator creates synthetic 13-character item identifiers in the format used for international postal items under the UPU S10 standard: two service letters, an 8-digit serial number, a mod-11 check digit, and a two-letter ISO 3166-1 alpha-2 code for the country of the postal operator that issued the item.

    You choose the first service letter — R for registered letter post, C for parcel post, E for EMS, L for tracked letter post, V for insured letter post, or U for untracked letter post with a barcode — and one of 14 origin countries. The second letter is picked at random, the serial is random digits, and the check digit is computed with the S10 weighting. Each generated value is rendered as a Code128 barcode preview and can be copied or downloaded.

    The Validate tab checks a pasted identifier against the same rules: exact length, letter and digit positions, a real ISO 3166-1 alpha-2 country code, and the correct check digit for the serial. Generation and validation both run locally in your browser, so nothing is sent to a postal system or to any server.

    What this tool does not do

    • The tool does not track parcels or query any postal system; it only produces and inspects identifier strings.
    • The service letter meanings shown are the commonly used first letters; operators may use other letters or assign different meanings.
    • The validator checks the country code against the ISO alpha-2 list available in the browser (Intl), not against the UPU operator list.
    • Generated numbers can coincidentally match a real postal item, and every value is synthetic test data.

    How to use this tool

    1. Choose a service indicator and origin country

      Pick the first letter that matches the postal service you are testing (R, C, E, L, V, or U) and the country of the issuing operator from the 14 available ISO codes.

    2. Generate a value

      Click Generate to create a 13-character identifier: your service letter, a random second letter, a random 8-digit serial, the computed check digit, and your chosen country code. A Code128 barcode preview appears with it, and you can copy or download the value.

    3. Validate an identifier

      Switch to Validate and paste any 13-character code. The validator reports the layout, check-digit, or country-code problem, or confirms the value with the country name and, where known, the service letter.

    Use cases

    Shipping parser tests

    Feed realistic 13-character postal identifiers into parsers and regexes that split the service letters, serial, check digit, and country code.

    Barcode and label QA

    Use the Code128 preview to test scanner integrations and label layouts that print postal item identifiers.

    Validator edge cases

    Exercise validation code with deliberately broken values — a bad check digit, a non-ISO country code, or the wrong length — and confirm your own logic reports the same problem.

    UPU S10 identifier positions

    PositionContent
    1Service indicator letter (e.g. R registered, C parcel, E EMS, L tracked letter, V insured, U untracked letter with a barcode)
    2Second letter, set by the issuing postal operator (random in generated values)
    3–108-digit serial number
    11Check digit computed over the 8-digit serial (weights 8,6,4,2,3,5,9,7)
    12–13ISO 3166-1 alpha-2 code of the issuing operator's country, not the destination

    Synthetic test values only; they are not registered in any postal system and are not queried against one.

    Common mistakes

    Mistake:Reading the last two letters as the delivery country.

    Fix:They identify the postal operator that issued the item. An item from GB can be delivered anywhere, so routing logic must not rely on them as a destination.

    Mistake:Assuming the second letter has a fixed meaning.

    Fix:Each operator sets the second letter itself; only the first letter follows the commonly used service meanings. Do not hard-code a lookup for it.

    Mistake:Treating a passing check digit as proof that an item exists.

    Fix:The check digit only proves the serial was copied correctly. It says nothing about registration, transit, or delivery.

    Frequently asked questions

    Are these real tracking numbers?

    No. Every value is synthetic test data generated for QA and development. A generated number can coincidentally match a real postal item, so never use one on a real shipment or to impersonate a carrier; DevTools accepts no liability for how generated data is used.

    How is the UPU S10 check digit calculated?

    Each of the 8 serial digits is multiplied by the weights 8, 6, 4, 2, 3, 5, 9, 7 and the products are summed. The check digit is 11 minus the sum modulo 11, with a result of 10 written as 0 and a result of 11 written as 5. For serial 12345678 the sum is 204, 204 mod 11 is 6, and 11 − 6 = 5.

    What do the first two letters mean?

    The first letter is a service indicator: R registered letter post, C parcel post, E EMS, L tracked letter post, V insured letter post, and U untracked letter post with a barcode. The second letter is chosen by the postal operator, so it has no fixed meaning across operators.

    Do the last two letters show where the item is going?

    No. They are the ISO 3166-1 alpha-2 code of the country of the postal operator that issued the item, not the destination country.

    Does validation check the UPU operator list or track the item?

    No. The validator checks the 13-character layout, the check digit, and whether the country code is a valid ISO 3166-1 alpha-2 code using the browser's Intl data. It does not consult the UPU operator list and does not query any postal system.

    References & standards