Skip to content
Menu

Barcode Generator

Generate Code 128, GS1-128, EAN-13, UPC-A, ITF-14 and QR Code barcodes in bulk, sized to the GS1 tables. Download SVG or PNG. Free, in your browser.

Runs in your browser

Data

One barcode per line. GS1-128: write each element as (AI)value, e.g. (01)04901234567894(10)ABC123. EAN-13 / UPC-A / ITF-14: enter the number without its check digit to have it calculated.

The GS1 size tables do not cover this symbology: the default X is this tool's choice, not a standard value.

0 entries

Which symbology to use

Symbology Typical use Data
Code 128 Your own references: container numbers, order or location codes Letters, digits and symbols (ASCII), up to 80
GS1-128 GS1 logistics labels: SSCC (00), GTIN (01) with batch, dates, etc. Application identifiers written as (AI)value
EAN-13 Retail products (GTIN-13) 12 digits (check digit added) or 13 digits
UPC-A Retail products in North America (GTIN-12) 11 digits (check digit added) or 12 digits
ITF-14 Cases and cartons (GTIN-14), often printed on corrugated board 13 digits (check digit added) or 14 digits
QR Code URLs and any text, including Japanese and Chinese Any text (UTF-8)

Entering 12 digits with EAN-13 calculates the check digit of an EAN-13; it does not make a UPC-A. Choose UPC-A for 12-digit GTINs.

GS1-128: application identifiers

Write each element as the application identifier (AI) in brackets followed by its value, for example (00)340123450000000000 or (01)04901234567894(10)ABC123(17)261231. The brackets are only for people; they are not encoded. The tool adds the FNC1 characters the GS1 rules require.

Supported AIs: (00) SSCC, (01) GTIN, (02) content, (10) batch or lot, (11) production date, (13) packaging date, (15) best before, (17) expiry, (21) serial number, (30) and (37) count, (310n) net weight in kg, (330n) gross weight in kg, (400) order number, (401) GINC, (402) GSIN, (403) routing code, (410) ship to, (413) ship for, (420) and (421) ship-to postal code. Dates are YYMMDD; use day 00 when only the year and month are known. One GS1-128 symbol holds at most 48 data characters, counting the AIs and the separator characters.

Sizes: choose the purpose

GS1 defines the X-dimension (the width of the narrowest bar), the minimum bar height and the quiet zones in symbol specification tables, one per application area. This tool uses the GS1 General Specifications, Release 26.0, section 5.12.3:

Purpose Table Symbologies X min / target / max (mm) Minimum bar height (mm) Minimum quality
Retail point of sale 1 EAN-13, UPC-A 0.264 / 0.330 / 0.660 18.28 / 22.85 / 45.70 1.5/06/660
Retail and distribution 3 EAN-13, UPC-A 0.495 / 0.660 / 0.660 34.28 / 45.70 / 45.70 1.5/06/660
Distribution only (cases, cartons) 2 EAN-13, UPC-A 0.495 / 0.660 / 0.660 34.28 / 45.70 / 45.70 1.5/10/660
Distribution only (cases, cartons) 2 ITF-14, GS1-128 0.495 / 0.495 / 1.016 31.75 1.5/10/660
Logistic unit with an SSCC 5 GS1-128 0.495 / 0.495 / 0.940 (0.938 in practice, see below) 31.75 1.5/10/660
  • Quiet zones: EAN-13 11X left and 7X right; UPC-A 9X on each side; ITF-14 and GS1-128 10X on each side.
  • For EAN-13 and UPC-A the minimum bar height grows with X; for a custom X the tool scales it the same way. The bar height does not include the human readable text.
  • Minimum quality is written as grade / measuring aperture (mil) / wavelength (nm). Tables 2 and 3 give EAN-13 and UPC-A the same sizes but a different quality: table 2 (distribution only) 1.5/10/660, measured with a 10 mil aperture; table 3 (also scanned at the point of sale) 1.5/06/660, the 6 mil aperture of table 1. ITF-14 printed directly on corrugated board or labels with X of at least 0.635 mm: 0.5/20/660.
  • A GS1-128 symbol may be at most 165.10 mm wide including its quiet zones. Table 5 gives a maximum X of 0.940 mm (p.420); because of the 165.10 mm limit, the actual maximum with only an SSCC is 0.938 mm (156 modules plus 2 × 10X quiet zones = 176X; 165.10 ÷ 176 = 0.938). The tool offers 0.938 mm as the maximum and reports rows that would be wider.
  • ITF-14 uses a wide-to-narrow ratio of 2.5 : 1. A bearer bar is required in principle; it may be left out only where it is technically impossible to print one, and reading then becomes less reliable (GS1 General Specifications 5.3.2.4, p.347). This tool always draws one: a 4.83 mm frame for printing with plates, or bars of at least twice the narrow bar above and below otherwise. ITF-14 with X below 0.635 mm should not be printed directly on corrugated board with plates.
  • Code 128 and QR Code are not in these tables. Their default sizes are this tool’s choice, not standard values.

Using the tool

  • Choose the symbology, purpose and size, paste one entry per line (or upload a CSV, TSV, TXT or Excel file and choose the column), and select Generate. Up to 1,000 entries at a time.
  • Rows with errors are listed in the results with the reason; the others appear under Barcodes, 50 per page, each with SVG and PNG downloads.
  • Download every barcode at once with SVG images (ZIP) or PNG images (ZIP) in the export bar; the file names start with the row number. The results table itself downloads as CSV, Excel and the other formats.
  • From the GTIN, SSCC and container number tools, Generate barcodes for valid rows opens this tool with up to 20 checked numbers.

Common errors

  • Check digit should be … – the last digit does not match the one calculated from the others. Enter the number without its check digit to have it calculated.
  • Write each element as (AI)value – GS1-128 data must start with an application identifier in brackets.
  • Application identifier not supported by this tool – only the AIs listed above are supported.
  • Wider than 165.10 mm – the GS1-128 symbol is too long at this X. Choose a smaller X or split the data over two symbols.

QR Code is a registered trademark of DENSO WAVE INCORPORATED in Japan and in other countries.

FAQ

Which X-dimension should I use?

Choose the purpose first; it picks the GS1 symbol specification table. Target is the size to aim for; any value between the minimum and the maximum of that table is allowed. Your customer's labelling guide may ask for a specific size.

Why can't I make the bars shorter?

The GS1 tables give a minimum bar height for each X, not counting the human readable text. This tool does not go below it. The GS1 notes allow shorter bars only for items too small for the minimum size, which this tool does not cover.

Will the PNG print at the right size?

The PNG stores its resolution (300 or 600 dpi) and uses a whole number of pixels per module, so the X can differ slightly from the one you chose; the preview shows the actual X. For exact sizes, use the SVG.

Is a barcode that scans in my phone correct?

Not necessarily. This tool checks the data and draws the symbol to the GS1 dimensions, but print quality (contrast, ink spread, the printer) decides whether it passes a verifier. Check printed labels with a barcode verifier when your customer requires a grade.

Is my data sent to your server?

No. Checking, drawing and creating the files all happen in your browser.