Skip to main content
Check Digit Calculator
GS1

GLN Check Digit Calculator

Calculate a Global Location Number check digit from its twelve-digit payload. See the GS1 weights and final Modulus 10 complement.

Last updated:

GS1 & Retail Barcodes

Check Global Location Number digits.

Length: 12 chars
Calculated Check Character / Checksum
--Ready
Complete Validated Sequence:
--
Arithmetic Steps & Mathematical Specification

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.

  1. 1Combine the GS1 company prefix with the location reference to get 12 digits.
  2. 2Multiply location digits in odd positions by 1 and in even positions by 3.
  3. 3Sum the products.
  4. 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.
  • S is the weighted GLN sum.
Worked example: 401234500001
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 typePayload (12 digits)Check digitGLNGS1 AI
Head office (legal entity)40123450000164012345000016(417)
Warehouse (ship to)40123450000234012345000023(410)
Store (ship for)40123450000304012345000030(413)
Invoicing party40123450000474012345000047(415)
Physical location06141410000120614141000012(414)
Dock door95212340001059521234000105(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.