Check Global Location Number digits.
Initialising algorithm engine for GLN Check Digit Calculator...
How GLN Check Digit Calculator Works?
The GLN Check Digit Calculator works by applying GS1 weights 1-3-1-3 from left to right to the 12-digit payload of a Global Location Number (GLN) and appending the 13th digit.
- 1Combine the GS1 company prefix with the location reference to get 12 digits.
- 2Multiply location digits in odd positions by 1 and in even positions by 3.
- 3Sum the products.
- 4Write (10 − (S mod 10)) mod 10 as the 13th GLN digit.
GLN Check Digit Calculator Formula
The GLN formula is d₁₃ = (10 − (Σ dᵢ·wᵢ mod 10)) mod 10, with wᵢ = 1, 3, 1, 3… from the left.
S = (d₁ + d₃ + … + d₁₁) + 3 × (d₂ + d₄ + … + d₁₂) (GLN) d₁₃ = (10 − (S mod 10)) mod 10 (GLN)
d₁…d₁₂are the 12 GLN payload digits (company prefix + location reference).d₁₃is the GLN check digit.Sis the weighted GLN sum.
Payload: 401234500001 Weights: 131313131313 S = 34 Check digit = (10 − (34 mod 10)) mod 10 = 6 GLN = 4012345000016
GLN Check Digit Calculator Conversion Table
The GLN conversion table lists sample location types with their 12-digit payloads and completed GLNs.
| Location type | Payload (12 digits) | Check digit | GLN | GS1 AI |
|---|---|---|---|---|
| Head office (legal entity) | 401234500001 | 6 | 4012345000016 | (417) |
| Warehouse (ship to) | 401234500002 | 3 | 4012345000023 | (410) |
| Store (ship for) | 401234500003 | 0 | 4012345000030 | (413) |
| Invoicing party | 401234500004 | 7 | 4012345000047 | (415) |
| Physical location | 061414100001 | 2 | 0614141000012 | (414) |
| Dock door | 952123400010 | 5 | 9521234000105 | (414) |
What is GLN Check Digit Calculator?
A GLN Check Digit Calculator is a tool that completes a 13-digit Global Location Number by computing its GS1 check digit. A GLN identifies a legal entity, a function, or a physical location such as a store, warehouse, or dock door.
GLNs appear in EDI messages, GS1-128 labels with Application Identifiers (AI) 410–417, and the GS1 Registry Platform.
What are the uses of GLN Check Digit Calculator?
There are 4 main uses of the GLN Check Digit Calculator, including EDI partner setup, location master data, and logistics labels.
- EDI partner setup: Trading partners exchange GLNs for invoicing, ordering, and delivery points.
- Location master data: Retailers assign GLNs to stores, warehouses, and departments.
- Logistics labels: Shippers encode ship-to GLNs with AI (410) on pallet labels.
- Healthcare traceability: Hospitals identify care sites in GS1 healthcare systems.