Every GTIN ends with a check digit calculated from the preceding digits using the GS1 modulo-10 algorithm (the same rule used for UPC-A, EAN-13, and ITF-14 cartons). Starting from the rightmost data digit (excluding the check digit), multiply alternating positions by 3 and 1, sum the products, and subtract the sum from the next higher multiple of 10. The difference is the check digit (or 0 if the sum is already a multiple of 10).
This tool applies that algorithm per row. If you paste a code without the final digit, it appends the correct check digit. If you paste a full code, it recomputes the check digit and marks the row valid or invalid — useful when cleaning master data before a PIM or marketplace upload.