Home › GTIN-14 and ITF-14
GTIN-14 and ITF-14: how to build a carton barcode from a UPC or EAN
The barcode on a case of products is derived from the barcode of the single unit: you add a digit at the front and recalculate the check digit. Here it is step by step, with examples and print sizes.
- Your data never leaves your browser
- PDF in real millimetres
- Automatic check digit
- Avery models for A4 and Letter
Pick a type and everything is set up for you (code, sheet size and design). You can change anything afterwards.
Order if there is no header: name, price, code, reference, old price, copies. With a header row (name, price, code, ref…) the columns are recognized automatically. A single column = codes only.
| # | Name | Price | Code | Ref. | Old price | Copies |
|---|
Current type: · Change label type
The file is saved on your computer and is not uploaded anywhere. Use it to reuse the same design another day or on another computer.
The logo is processed right here and is not uploaded anywhere. Use a simple image: fine details are lost on small labels.
Your product lists, prices and logos are never uploaded to any server. The PDF, PNG, SVG and ZIP are created on your own device. So you don't lose your work, a copy is kept only in this browser (you can delete it with “Clear all”).
What a GTIN-14 is (and why it has so many names)
A GTIN-14 is the number that identifies a case containing several units of the same product: the carton in which 6, 12 or 24 jars ship to a distributor. You will see it under several names that, in practice, mean the same thing:
- GTIN-14: the official name of the 14-digit number in the GS1 system.
- ITF-14: not the number but the barcode symbology (Interleaved 2 of 5) used to draw it. It is the one with a frame around it.
- EAN-14 and DUN-14 (Distribution Unit Number): older or informal names, still common among distributors and in Europe.
- Case code, carton code, shipping container code: what warehouses and retailers usually call it.
If a customer asks for “the ITF-14 of the case”, they are asking for the case's GTIN-14, drawn as an ITF-14 barcode.
The key idea: it is built from the unit's UPC or EAN
The case number is not made up: it derives from the UPC-A or EAN-13 of the product inside. It keeps the same company and item numbers, with two changes: a new digit at the front and a recalculated check digit at the end.
| Part | Digits | Where it comes from |
|---|---|---|
| Indicator digit | 1 | You choose it from 1 to 8 (9 is reserved for variable-measure items) |
| Body of the unit's code | 12 | The unit's code padded to 13 digits (a UPC-A gets a leading 0), without its check digit |
| Check digit | 1 | Calculated again for the 13 digits before it |
The indicator digit tells packaging levels apart for the same product. A common convention is 1 for the first case size, 2 for a larger case or a different pack, and so on up to 8. Each indicator must stand for one single pack configuration: if 1 is the 12-unit case, it cannot also be the 24-unit one.
How to calculate it step by step
Take the UPC-A 036000291452 and say you want the code for a case of 12.
- Pad the UPC-A to 13 digits with a leading zero:
0036000291452. (If you start from an EAN-13, skip this step.) - Drop the check digit (the last one, 2). That leaves 12 digits:
003600029145. - Add the indicator in front. If this case is level 1:
1003600029145(13 digits). - Calculate the check digit with the usual GS1 modulo-10 algorithm: number the digits from the right, multiply alternately by 3 and by 1, add them up and find what is missing to reach the next multiple of ten.
| Position (from the right) | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Digit | 5 | 4 | 1 | 9 | 2 | 0 | 0 | 0 | 6 | 3 | 0 | 0 | 1 |
| Weight | 3 | 1 | 3 | 1 | 3 | 1 | 3 | 1 | 3 | 1 | 3 | 1 | 3 |
| Product | 15 | 4 | 3 | 9 | 6 | 0 | 0 | 0 | 18 | 3 | 0 | 0 | 3 |
The sum is 15 + 4 + 3 + 9 + 6 + 0 + 0 + 0 + 18 + 3 + 0 + 0 + 3 = 61. To reach 70 you need 9, so the complete code is 10036000291459.
With other indicators, the same product gives different codes. Notice that the check digit changes even though the rest of the number is the same:
| Indicator | Body (13 digits) | Check | Full code |
|---|---|---|---|
| 1 | 1003600029145 | 9 | 10036000291459 |
| 2 | 2003600029145 | 6 | 20036000291456 |
| 5 | 5003600029145 | 7 | 50036000291457 |
If you already have a GTIN-14 and want to validate it, multiply its 14 digits alternately by 3 and 1, starting with 3 on the first digit (because 14 is even), and add them: the total must be a multiple of 10. With 10036000291459 the sum is 70. The basics of the calculation are explained in the check digit guide.
Two very common mistakes
- Keeping the unit's check digit. Someone who adds a 1 in front and leaves the 2 at the end gets
10036000291452, a 14-digit number whose check digit does not add up. You must remove the last digit and recalculate it. - Using the same number for different cases. A case of 6 and a case of 12 of the same product need different indicators. If both carry the same code, your customer's warehouse cannot tell them apart.
What if the case mixes different products?
A GTIN-14 describes a case of one single product. A case with several different products (a variety pack with three flavors) cannot be derived from the code of any of its components: it needs its own identifier, assigned as one more item number of your company. If you are unsure how to encode it, ask your customer or your GS1 member organization: it affects how their system will read it.
Do I need an official UPC or EAN to have a GTIN-14?
For the code to be valid in another company's logistics, yes: it is built with your own company prefix, the one GS1 assigns to you. If the unit's code is not yours, the case code you derive will not be yours either and may collide with another company's. In the guide on how to get official UPC and EAN barcodes we explain the process and what to do if you only need codes for your own use.
For goods that never leave your business (your own warehouse, archive boxes) you need neither: a Code 128 with your own reference is more flexible.
How it is drawn: ITF-14
The number is encoded as ITF-14 (Interleaved 2 of 5), a symbology that packs digits in pairs: the bars encode the first digit of each pair and the spaces the second. That is why it only accepts an even number of digits, and 14 qualifies. It also has a frame (bearer bars) that protects the edge bars and helps when printing on rough surfaces such as corrugated cardboard.
The GS1 General Specifications give these approximate figures for ITF-14:
| Parameter | Value |
|---|---|
| Module (thinnest bar) | minimum 0.495 mm (0.0195 in), maximum 1.016 mm (0.040 in); 100% is 1.016 mm |
| Bar height | 31.75 mm (1.25 in); it does not change when you reduce the width |
| Side quiet zones | at least 10 modules on each side |
| Bearer bars (frame) | recommended whenever they can be printed |
With the minimum module of 0.495 mm, the code is about 67 mm (2.6 in) wide without the quiet zones (about 77 mm with them); at the nominal 1.016 mm module, about 137 mm (5.4 in), or 157 mm with them. That is a lot for a small label, and it is why ITF-14 is printed on large labels (for example 4 × 6 in on a thermal roll) or directly on the carton.
If you print directly on corrugated cardboard with a plate-based process (flexo), carton and printing guidelines usually recommend a thicker module, around 0.635 mm or more. Confirm with your printer.
How to do it with GeneraEtiquetas
The tool above is set up with this article's example, 10036000291459, as an ITF-14:
- Type the first 13 digits (indicator + 12 digits of the padded unit code) and the tool calculates and appends the check digit. Or paste all 14 and it validates the last one.
- With a list of cases, paste it from Excel in “Many labels” mode and generate them all at once. To prepare the list, see barcodes from Excel.
- Choose a large label in step 3. The tool warns you if the bars come out too thin or too short: for ITF-14 it treats a module under 0.5 mm or a height under 20 mm as “tight”.
- Print a test and scan it with the real scanner at your warehouse or your customer's before printing the whole run.
If you need extra logistics information on the same label (lot number, expiry date, pallet number), the usual standard is GS1-128, an application of Code 128 that this tool does not generate. In that case, ask your customer or carrier which format they require. And to see when each code type fits, read which barcode type to use.
How we check the quality of the codes the tool generates is explained in How we verify measurements and codes.
Frequently asked questions
Are GTIN-14, ITF-14, EAN-14 and DUN-14 the same thing?
Almost. GTIN-14 is the official name of the 14-digit number; ITF-14 is the barcode symbology used to draw it; EAN-14 and DUN-14 are older or informal names. In practice, when someone asks for the ITF-14 or DUN-14 of a case, they mean a GTIN-14 printed as an ITF-14 barcode.
How do I make a GTIN-14 from a UPC?
Pad the UPC-A to 13 digits with a leading zero, remove its check digit, put an indicator digit (1 to 8) in front and calculate a new check digit with the GS1 modulo-10 algorithm. For example, UPC-A 036000291452 with indicator 1 gives 10036000291459.
Which indicator digit should I use?
You choose it from 1 to 8 to tell packaging levels of the same product apart (for example 1 for the 12-pack case and 2 for the 24-pack one). 9 is reserved for variable-measure items. Each indicator should stand for a single pack configuration.
Can I make a GTIN-14 without an official UPC or EAN?
You can generate the drawing, but it will only be valid inside your own company. For it to work in another company's logistics it must be built with your GS1 company prefix; otherwise it could match another product's number.
What size should an ITF-14 barcode be?
The module should be between 0.495 and 1.016 mm, with bars about 31.75 mm tall, 10 modules of quiet zone on each side and a frame around it. At the minimum module it is about 67 mm wide (77 mm with quiet zones); at nominal size, about 137 mm (157 mm with them).
More guides
Which barcode
Which to choose among EAN-13, UPC-A, Code 128, Code 39, ITF-14 and QR for your case: retail, inventory, cartons or links. Comparison with examples.
Check digit
How the check digit of EAN-13, EAN-8, UPC-A and ITF-14 is calculated step by step, with worked examples, which errors it catches and which it misses.
Minimum size
What size, blank margins and contrast a barcode needs to scan: module, quiet zones, printer resolution and real examples on label sheets.
Price labels
Make and print price labels with a barcode: name, price, crossed-out sale price and Avery sheets. Free, and your data never leaves your browser.
Avery templates
Millimetre measurements for Avery 5160, L7160, 3474, L7651 and more. Generate a PDF with each label in its cell or define your own grid. Free.
Full generator
All barcode formats and labels in a single tool.
Most-used sheets: Avery 3474 · Avery L7162 · Avery 5162 / 8162 · Avery 3422 · Avery L7165 · Avery 5160 / 8160