Barcode Generator for ITF‑14, I2 of 5 and VIN
Make an ITF-14, Interleaved 2 of 5 (I2of5), VIN, Code 128, Code 39, EAN-13, EAN-8 or UPC-A barcode, or a 2D Data Matrix (normal or inverse), GS1 DataMatrix or PDF417. The check digit is worked out and checked for you. Set the bar width, height and quiet zone, then download SVG, or PNG at 203, 300, 600 or 1200 DPI to match your printer.
- 1Pick a type and enter data
- 2Set the size
- 3Download
1Barcode type and data
Build a GTIN-14 from the GTIN of the item inside
The indicator (1–8) is chosen by the brand owner for each packing level. The inner GTIN's own check digit is dropped and a new one is calculated.
2Size and options
X is the width of the narrowest bar. The defaults for each type come from the GS1 size tables or a common print size.
X is the size of one square module (a single cell). Use the X your label spec or printer asks for; the default is a common print size. The quiet zone is the blank margin on all four sides.
For printing straight onto cartons with plates: X 0.635 mm and a 4.83 mm bearer frame, per GS1.
3Your barcode
Enter data to see the barcode.
We count visits, finished downloads and a few tool events (tool name and short labels only) with analytics that sets no cookies; with your OK, Google Analytics counts visits and Microsoft Clarity records clicks and scrolls (text and images masked) to help us improve the tools.
How to make a barcode
- Pick the type your label spec, customer or scanner asks for. If nobody has said: retail checkout uses EAN-13 or UPC-A, outer shipping cases use ITF-14, digits-only internal labels use Interleaved 2 of 5, and mixed letters and numbers use Code 128 or Code 39. For small parts, medicines or lots of data in a small space, use Data Matrix (GS1 DataMatrix for GS1 data) or PDF417.
- Type the data. For ITF-14, EAN-13, EAN-8 and UPC-A you can leave off the last digit and the check digit is added. Type the whole number and it is checked instead, so a typo is caught before you print.
- Set the size in millimetres. Module width X is the width of the narrowest bar; everything else scales from it. Keep the quiet zones (the blank margins) at the default or wider.
- Download. SVG is vector and is the better choice for print and label software. For PNG, choose your printer's DPI: the bars are snapped to whole pixels, and the note shows the X you actually get.
- Test-scan a printed copy with the scanner that will be used, before a full print run.
What is Interleaved 2 of 5 (I2of5)?
Interleaved 2 of 5, also written I2 of 5, I2of5, I 2/5 or ITF, is a barcode that holds digits only. It is specified in ISO/IEC 16390. The name describes how it works:
- 2 of 5: every digit is drawn with five elements, two wide and three narrow.
- Interleaved: digits are encoded in pairs. The first digit of a pair is carried by five bars, the second by the five spaces between them.
- A start pattern of four narrow elements and a stop pattern of wide bar, narrow space, narrow bar frame the data.
Because digits travel in pairs, an I2of5 barcode always holds an even number of digits. If you type an odd number, this tool adds a leading 0 and tells you. An optional check digit uses the same 3-1 weighting as GS1 numbers. This tool offers wide : narrow ratios of 2.25 : 1, 2.5 : 1 and 3 : 1, the range GS1 sets for ITF-14, with 2.5 : 1 as the default. For a plain I2of5 label, use the ratio your scanner or label spec asks for.
What is an ITF-14 code?
ITF-14 is Interleaved 2 of 5 used to carry a 14-digit GTIN. GS1 describes it as the barcode for trade items that are not expected to pass through a retail checkout, and as better suited to printing straight onto corrugated board. The GS1 rules include:
- Always 14 digits, the last one a check digit.
- Quiet zones of at least 10X on both sides.
- Wide : narrow ratio of 2.25 : 1 to 3 : 1, with 2.5 : 1 as the target.
- Size: for items scanned in general distribution, X runs from 0.495 to 1.016 mm, and bars at least 31.75 mm tall (not counting text or bearer bars).
- Bearer bars are mandatory unless they aren't technically feasible. Printing plates need a 4.83 mm frame around the whole symbol. Other printing methods need bars at least twice the narrow bar width on the top and bottom.
- Leave at least 1.02 mm between the bearer bar and the human-readable digits.
- Printed straight onto corrugated board with plates (flexo, the usual way cartons are printed): GS1 says ITF-14 symbols with an X below 0.635 mm "SHOULD NOT be printed directly on corrugate with conventional (plate-based) processes." Use the “Corrugated board” preset for X = 0.635 mm with a 4.83 mm bearer frame. Labels and other printing methods can use the smaller X.
This tool uses those values as its ITF-14 defaults and warns you when you go outside them. GS1 also allows smaller sizes for items too small for the minimum; check your customer's label spec.
ITF-14 vs GTIN-14: what's the difference?
A GTIN-14 is the number. ITF-14 is one barcode that can carry it (GS1-128 is another). A GTIN-14 for a case is usually built from the GTIN of the item inside:
indicator (1–8) + inner GTIN without its check digit + new check digit
GS1's own example: the item 0614141123452 packed in a case with indicator 1 gives 1 061414112345 9. Try it in the “Build a GTIN-14” box above. Indicator 9 is reserved for variable-measure items.
How the check digit is calculated
ITF-14, EAN-13, EAN-8, UPC-A and the optional I2of5 check digit all use the GS1 method:
- Starting from the rightmost digit (before the check digit) and moving left, multiply the digits by 3, 1, 3, 1…
- Add the results.
- Subtract the sum from the nearest equal or higher multiple of ten. That's the check digit.
GS1's worked example is 629104150021. The sum is 57, and 60 − 57 = 3, so the full GTIN-13 is 6291041500213. If you type a full number with the wrong last digit, the generator refuses it and tells you the correct digit.
VIN barcodes
Under the US rule for vehicle identification numbers (49 CFR Part 565, from the NHTSA):
- A VIN has 17 characters.
- The letters I, O and Q are never used. The allowed letters are A–H, J–N, P, R–Z, plus the digits 0–9.
- Position 9 is a check digit. Each letter is given a value (A=1, B=2 … H=8, J=1 … N=5, P=7, R=9, S=2 … Z=9). Each character is multiplied by its position weight (8, 7, 6, 5, 4, 3, 2, 10, —, 9, 8, 7, 6, 5, 4, 3, 2) and the products are added. The remainder after dividing by 11 is the check digit, and a remainder of 10 is written as X.
The rule's own example, 1G4AH59H45G118341, adds up to 411. 411 ÷ 11 leaves 4, so the check digit is 4. This generator checks position 9 the same way and warns you if it doesn't match. Vehicles built for other markets may not follow the US rule.
Part 565 sets the characters, not a barcode format. Barcoded VIN labels are covered by industry specs such as SAE J1877 (current version J1877_202501, revised January 2025). This tool draws the VIN as Code 39, which holds every VIN character, or as Code 128, which is shorter. Use whichever your scanner or label spec asks for.
This is a barcode maker, not a VIN generator. It won't invent VINs or look up a vehicle.
Code 39, Code 128, EAN-13, EAN-8 and UPC-A
- Code 39 (ISO/IEC 16388) holds A–Z, 0–9, space and - . $ / + %. Start and stop * characters are added for you, and a mod 43 check character is optional. Some readers try “full ASCII” Code 39, where pairs such as +A or %U are read as other characters (one of the two decoders we test with does this by default). If your scanner is set that way, avoid those pairs.
- Code 128 (ISO/IEC 15417) holds any keyboard character and is more compact. This tool switches to the double-density digit mode for runs of digits automatically. It makes plain Code 128, not GS1-128 with application identifiers.
- EAN-13 and UPC-A are the retail checkout barcodes for GTIN-13 and GTIN-12. GS1's retail size table gives X from 0.264 to 0.660 mm, with 0.330 mm as the target. Quiet zones are 11X left and 7X right for EAN-13, and 9X on each side for UPC-A. The guard bars run 5X longer than the rest.
- EAN-8 carries a GTIN-8 for packs too small for an EAN-13 (added 13 November 2026). Same X range; recommended bar height 18.23 mm (EAN-13: 22.85 mm); quiet zones of at least 7X on both sides. At X 0.330 mm it is 26.73 mm wide with its quiet zones, against 37.29 mm for EAN-13. A GTIN-8 is its own number from GS1, not a shortened GTIN-13. Sizes: GS1 Sweden size guide, read 13 Nov 2026.
Data Matrix generator
Data Matrix is a 2D barcode made of square modules, with a solid L-shaped finder pattern on two sides and a dotted pattern on the other two. It holds text, numbers or a link, and uses Reed-Solomon error correction, so a slightly damaged symbol still reads. It needs a camera-based (imaging) scanner or a phone; laser scanners can't read it.
- Shape: square symbols run from 10 × 10 to 144 × 144 modules, always an even number. There are also rectangular sizes for narrow spaces. Pick “Rectangle” and the smallest one that fits is used.
- Size: set the module size X in millimetres. The symbol size in modules depends on how much you encode, and the result panel shows both.
- Quiet zone: GS1 sets it at one module on all four sides. This tool defaults to 2X for a little extra margin.
- Text with accents or other non-English characters is stored as UTF-8 with an ECI flag that tells the reader the encoding.
Download SVG for print or label software, or PNG at your printer's DPI; modules are snapped to whole pixels.
Inverse Data Matrix (light on dark)
An inverse Data Matrix, also called reverse or negative, has light modules on a dark background. Tick “Inverse” and the whole symbol is flipped, quiet zone included, so it sits in a dark box. This is the version to use when the code is etched, laser-marked or printed on a dark surface. The GS1 General Specifications (section 5.6.2) list reflectance reversal as an inherent Data Matrix feature: a symbol can be read whether it is marked dark on light or light on dark. Most phone scanners and imagers handle it. Some older or strictly configured readers need inverse reading turned on, so test with the scanner that will be used.
GS1 DataMatrix with FNC1
GS1 DataMatrix is Data Matrix carrying GS1 Application Identifier (AI) data, such as a GTIN, expiry date, batch and serial number on medicines and medical devices. Type the element strings with each AI in brackets, for example (01)09506000134352(17)271231(10)ABC123. The encoder:
- puts FNC1 first, so readers report the GS1 symbology identifier ]d2;
- adds a separator after variable-length fields such as (10) when another AI follows;
- checks each AI's length and characters, and the GTIN check digit.
We test every GS1 DataMatrix by decoding it and checking for ]d2 and the expected separator. The brackets aren't stored in the symbol; they only show where each AI starts.
PDF417 barcode generator
PDF417 is a stacked barcode: rows of bar-and-space codewords, each row with start and stop patterns, specified in ISO/IEC 15438. It is used on US and Canadian driver's licences and many airline boarding passes, and it can hold around a kilobyte of text.
- Columns: leave it on Auto, or set the number of data columns to make the symbol wider and shorter (or narrower and taller).
- Error correction level 2 to 8: higher levels survive more damage but make the symbol bigger. Auto picks a level from the amount of data.
- Row height is set in multiples of X; 3X is the usual minimum and the default here. The quiet zone defaults to 2X on every side.
This tool encodes the text you type. It doesn't build the special data layout used on ID cards or boarding passes.
For a code that calls a number when scanned, see how to make a QR code for a phone number.
Page updated : added a decode test of our barcodes and how we tested.
Do the barcodes read back? Our test
On 3 November 2026 we made these codes with the page, saved the PNGs and decoded each one with a reader we wrote for the test, separate from this page's code. It measures the bars along a line across the image and decodes them. Every code read back as the number we typed, with a correct check digit.
| Typed, type and PNG | Read back | Printed size |
|---|---|---|
| 1061414112345, ITF-14 at 203, 300 and 600 DPI | 10614141123459 (the page added check digit 9) | 69.5 × 41 mm |
| 590123412345, EAN-13, 300 DPI | 5901234123457 (check digit 7) | 37.3 × 28.9 mm |
| 03600029145, UPC-A, 300 DPI | 036000291452 (check digit 2) | 37.3 × 28.9 mm |
| 1234567890, Interleaved 2 of 5, 300 DPI | 1234567890 | 35.8 × 20 mm |
| 12345 (odd length), Interleaved 2 of 5, 300 DPI | 012345: the page adds a leading zero, because the code stores digits in pairs | 25.2 × 20 mm |
With a box bearer the ITF-14 is 71.5 mm wide and still read back the same. The PNG snaps the bars to whole pixels, so the printed module width moves a little with the DPI: for the default ITF-14 module of 0.495 mm, the page said 6 px at 300 DPI (0.508 mm) and 4 px at 203 DPI (0.500 mm). The SVG keeps the exact size. Test browser: Chromium 156 (Playwright, headless) on a 2019 MacBook Pro 16-inch, macOS 15. Not tested: Code 39, Code 128, VIN, Data Matrix and PDF417 (our reader doesn't decode them), a real handheld scanner, and printed labels.
This page in other languages: Polski
Report a problem or suggest a feature