Random GLN-13 Generator
Location and party fixtures
Generate valid-looking 13-digit GLN (GS1 Global Location Number) values with a correct mod-10 check digit for EDI, ERP, master-data, and supply-chain integration tests. Unlike EAN-13 or GTIN, a GLN identifies a location or party — a ship-to or bill-to address, warehouse, store, or legal entity — not a product.
These are random fixture codes, not real GS1-assigned numbers, and do not map to any actual company, GS1 company prefix, or physical location.
How the GS1 mod-10 check digit works
A GLN is 12 payload digits plus a 13th check digit. Reading the payload left to right, digits in odd positions are weighted 1 and digits in even positions are weighted 3; the weighted total is summed, and the check digit is whatever value brings that sum up to the next multiple of 10. EAN-13, UPC-A, GTIN-14, and SSCC all use the same mod-10 scheme, which is why one validator covers the whole family.
GLN vs GTIN
Both are 13-digit GS1 keys with the same check-digit maths, so they look interchangeable, but they identify different things. A GTIN (or its EAN-13 retail form) identifies a trade item — the product you scan at a till. A GLN identifies a party or a place: a legal entity, a ship-to or bill-to address, a warehouse, or a store. EDI messages routinely carry both, so test fixtures usually need a GLN for the sender and receiver and a GTIN for each line item.