top of page

GTIN Check Digit Calculation: Checking the ÜTS UDI-DI Number

12 hours ago
4 min read

In a medical device's ÜTS registration, the UDI-DI number is entered exactly as it is written on the label and in the documents. The last digit of a GTIN allocated under the GS1 standard is the check digit; it is calculated from the rest of the number and catches a single-digit error. The tool below calculates the check digit of GTIN-8, GTIN-12, GTIN-13 and GTIN-14 numbers and separates the UDI-DI and UDI-PI fields in the human-readable text of DataMatrix and GS1-128 barcodes. The calculation runs in your browser; the number you enter is not sent anywhere.

What Does the ÜTS Guideline Say About the UDI-DI Number?

The Guideline on the Registration Processes of Medical Devices to the Product Tracking System (TCKKD-KLVZ-03) regulates the UDI-DI Number field in device registration under the MDR in Article 27(2)(b). The three provisions in that subparagraph explain why the barcode check should be done before registration (unofficial translation):

“The barcode allocated under standards such as GS1, HIBCC, ICCBBA or IFA that the device holds must be entered into ÜTS exactly as it is, without any change.”

“A device application made under Article 40 of this Guideline for a device registration whose barcode has not been entered into ÜTS as it appears in its technical documents (label/sales packaging, EU declaration of conformity, EU certificate, etc.) will end negatively.”

“The format of the UDI-DI Number must comply with the barcode assignment rules set by the UDI Issuing Entity to which it was allocated.”

For GS1, the first requirement of the barcode assignment rules is a correct check digit. A number whose check digit does not match has been written incorrectly either on the label, in the document or on the application screen. Which one is wrong must be found before registration; otherwise the application is rejected on the ground of barcode format or on the ground of a mismatch with the barcode in the document.

How Many Digits Does a GTIN Have?

In the GS1 system the product number is allocated as a GTIN and is used in four lengths: GTIN-8, GTIN-12, GTIN-13 and GTIN-14. The most common in medical devices are GTIN-13 and GTIN-14. In DataMatrix and GS1-128 barcodes, the GTIN is always written as 14 digits after the (01) application identifier; a shorter GTIN is completed to 14 digits by adding leading zeros. For example, GTIN-13 number 4006381333931 appears in the (01) field as 04006381333931. The leading zero does not change the check digit.

How Is the Check Digit Calculated?

The calculation is the same for all GTIN lengths. The digits other than the check digit are multiplied alternately by 3 and 1 from right to left, the products are added, and the total is rounded up to the next ten. The number needed to reach it is the check digit. In the example 4006381333931, the number without the check digit is 400638133393:

Digit (right to left)

Weight

Product

3

3

9

9

1

9

3

3

9

3

1

3

3

3

9

1

1

1

8

3

24

3

1

3

6

3

18

0

1

0

0

3

0

4

1

4

Total


89

The total is 89. Since the next ten is 90, the check digit is 90 - 89 = 1, and the number 4006381333931 is therefore correct. If the total is already a multiple of ten, the check digit is 0.

UDI-DI and UDI-PI in the DataMatrix Human-Readable Text

The human-readable text under the DataMatrix or GS1-128 barcode on the label carries several pieces of information together, with application identifiers in parentheses. The (01) field is the UDI-DI, and this is the number entered in the UDI-DI Number field in ÜTS. (17) expiry date, (10) lot number, (21) serial number and (11) production date are UDI-PI fields; they are used in individual movement notifications, not in the product registration. For example, in the text (01)04006381333931(17)281231(10)LOT45A the UDI-DI is 04006381333931. For the placement of the carrier on the label, see the guide to the UDI carrier and barcode format.

Why Is an Application Rejected Even When the Check Digit Is Correct?

The check digit only shows that the number is internally consistent. An ÜTS application also requires the number to belong to the right packaging and the right document. According to the same subparagraph of the Guideline:

“Essentially, device registration in ÜTS is made with the barcode of the smallest packaging placed on the market (unit packaging or single packaging).”

A registration opened with the GTIN of a carton or multi-pack sales packaging is rejected on the ground of a multi-pack barcode, even if the check digit is correct. The same number appearing in another company's registration is a separate ground for rejection. The barcode must be written identically on the label, the declaration of conformity and the certificate. For the differences between barcode organisations, see UDI issuing entities, and for the general rules, the page on UDI-DI and barcode rules.

Frequently Asked Questions

Does the tool also check HIBCC barcodes?

No. The tool calculates only the check digit of GS1 GTIN numbers. HIBCC and ICCBBA numbers have their own check character rules, which are not included in this tool.

Should I enter a GTIN-13 into ÜTS by adding a leading zero?

The barcode is entered into ÜTS exactly as it appears in the technical documents. Check in what length the number is written on the label, the declaration of conformity and the certificate, and use the same spelling as in the documents.

What should I do if the check digit turns out wrong?

First re-read the number from the original label. If the error is on the label or in the document, correcting it is the manufacturer's job; a registration must not be opened in ÜTS with an incorrect number.

To check the barcode, label and document consistency together before ÜTS product registration, see our ÜTS product registration consultancy page or request a price quote. Under its Medical Device ÜTS Registration Consultancy service, Medex gets the registration ready for application.

 
 

Medical Device ÜTS Registration Consultancy

Request an ÜTS registration consultancy quote

Ehlibeyt Mahallesi, Tekstilciler Caddesi No: 35/7 06520 Çankaya / Ankara - TÜRKİYE

Cevizli Mahallesi, Zuhal Caddesi Ritim İstanbul B Blok, No:44 Maltepe / İstanbul - TÜRKİYE

info@medexmedikal.com
+90 505 580 4622
+90 312 389 1354

ÜTS Guides · Legislation Calendar · Glossary · ÜTS Guide Index · Frequently Asked Questions

Services: ÜTS Consultancy · Who Carries Out the ÜTS Registration? · ÜTS Document Registration Consultancy · ÜTS Product Registration Consultancy · Importer ÜTS Registration Consultancy · Sales Centre Authorisation Certificate · EUDAMED Registration Consultancy · MDR/IVDR Declaration of Conformity · Technical File Preliminary Review · Label and Instructions for Use Check · PRRC Service · PMS and PSUR · Clinical Evaluation · EMDN and GMDN Code Determination · Certificate of Free Sale · EUDAMED XML Generator · ÜTS Registration Training · Correction of a Rejected ÜTS Application

KVKK and Privacy Policy | Cookie Policy | Accessibility Statement

© 2026 Medex Kurumsal Danışmanlık Ltd. Şti.

bottom of page
WhatsApp Hemen Ara