Why an exported size barcode can differ from your box
Don't overwrite your box scan just because an export shows another barcode for the size. Barcodes.gg can choose one barcode across several size records. Compare the product and size first, then store the scanned and chosen values separately.
Keep the scanned barcode before comparing the export
Keep the barcode you scanned in a separate field from the barcode supplied by an export. A different exported value isn't, by itself, a reason to replace the box value or reject the pair.
The Barcodes.gg model includes a routine that chooses one barcode for records grouped under the same size. It changes those records in memory rather than saving the replacement to the database. That means a chosen output value can differ from a value held on an individual source record.
First compare the product, colourway and size against the box label. Include the size system in that check: a number without its US or EU label isn't enough. If you need help finding those fields, use how to read a sneaker box label.
Treat a barcode lookup as another record to compare with the physical label. Neither a passing check digit nor agreement between two records proves that the pair is authentic.
How Barcodes.gg chooses one barcode per size
The selection routine first removes records that fail its eligibility checks. These checks cover the check digit, restricted internal number ranges and very short number cores. It also excludes canonical values longer than thirteen digits from the barcode choice for an individual pair.
It then groups the remaining records by their EU size where that field exists. The grouping trims spaces and changes a decimal comma to a decimal point. It also removes a trailing parenthetical note and converts recognised fractional sizes to decimal values.
When EU size is missing, the routine groups by the complete size data instead. This fallback matters when investigating an unexpected result: missing EU data doesn't automatically place every record into one shared size group.
Within each group, the routine ranks checked StockX records first, mindset records next, and older StockX records after those. It also uses the frequency of a shared seven digit prefix to favour common number blocks. Among otherwise comparable choices, it favours an EAN over a UPC and uses further ordering rules to select one value.
The routine assigns that chosen barcode and its corresponding type to every remaining record in the size group. It doesn't establish that each original box carried the chosen number. It's a way to make the output consistent across records.
Separate a padding difference from a different number
Before investigating a replacement, check whether the two values differ only by leading zero padding. The lookup code searches several padded forms of the same number because stored records can use different widths.
For its canonical value, the model removes leading zeros and pads a core of twelve digits or fewer back to twelve digits. Longer cores remain at their unpadded length. This is application behaviour, not a reason to strip zeros from every identifier in your inventory.
Compare the canonical values without changing your original scan. If they agree, you have a formatting difference rather than two distinct number cores. Keep the original value for tracing the box, and use a separate comparison field for matching records.
If the canonical values still differ, check the selected product and size again. Don't shorten a thirteen digit number with a nonzero first digit to force agreement. The public lookup guidance explicitly says that such a number has no twelve digit form.
Review the difference before updating inventory
Use an import rule that preserves both values until you've reviewed the difference. Name the fields clearly enough that staff can tell a physical scan from a selected catalogue value without opening the import file.
For a small batch, compare each changed row with its box label before accepting the import. For a larger batch, route rows with different canonical values into a review queue. Don't let a successful file import count as approval of the product match.
Record the review decision alongside the two values. If the product, colourway or size disagrees, leave the inventory identifier unchanged while you investigate. If those fields agree, you can retain the selected catalogue value separately without losing what was actually scanned.
- Save the original box scan as text, preserving its leading zeros.
- Compare canonical values, then check the product, colourway and labelled size.
- Keep unresolved differences out of automatic barcode updates.
Text version
Keep the scan and the selected barcode Compare size records without losing the original box scan. Section: Review the difference before updating inventory Step 1: Preserve the scan. Keep the box digits as text. Step 2: Compare the records. Check canonical values and labelled size. Step 3: Review differences. Hold unresolved barcode updates. Import mappings: Box scan to Original barcode: Keep digits and leading zeros; Export barcode to Selected barcode: Store separately until reviewed
Try the tools
Read our guides first in Google results: add Barcodes.gg as a preferred source.
Related reading
How to enrich a product catalogue CSV from style codes
Use manufacturer style codes to add product details and size-specific barcode pairs to an inventory CSV without writing an integration.
Resolving sneaker size variants in a style-code barcode lookup
A style-code lookup can return many barcodes for one shoe. Learn how to read size and color variant data so you attach the right barcode to inventory.
How to read a sneaker box label: Nike, Jordan, adidas, New Balance
Find the UPC or EAN, the style code, the size and the country on a Nike, Jordan, adidas or New Balance box label, then match them to the tongue tag.