How to use it
- Choose the barcode type: EAN-13 or UPC-A for retail products, EAN-8 or UPC-E for small packs, GS1-128 or ITF-14 for cartons, Code 128 or Code 39 for your own labels.
- Type the number without the check digit (it is added) or with it (it is checked), or the text.
- Set the module width in mm, the height and the colours if needed, and read the notes under the preview.
- Download SVG for print or PNG at the resolution of your printer, or put one value per line under “Many barcodes” to get a ZIP.
Rules and limits
Barcode types
- EAN-13 (13 digits) and UPC-A (12 digits): products in shops. EAN-8 and UPC-E (8 digits): small packs. UPC-E is entered with 6, 7 or 8 digits, or as a UPC-A number that can be shortened.
- The last digit is the check digit. Type the number without it and it is computed; type it with it and it is checked: a wrong one is refused, with the right digit shown.
- Code 128: letters, digits and signs of ASCII (also control characters), up to 80. The page picks the code sets A, B and C itself so that the code is as short as possible; long digit runs take half the space.
- GS1-128: application identifiers in brackets, for example
(01)09506000134352(17)261231(10)AB-123. The page adds FNC1 where GS1 needs it, checks the length of the fixed-length identifiers and the check digits of (00), (01), (02) and (410)–(417), and allows at most 48 characters. The other rules of the GS1 identifier list are not checked. - Code 39: capital letters, digits and
- . $ / + %and space, up to 60, with an optional mod 43 check character. ITF-14: 14 digits for cartons, with bearer bars on top and bottom or as a frame if you like.
Size, margins and text
- The width of the narrowest bar (the module, or X-dimension) is set in mm. EAN and UPC: 0.33 mm is 100 % (GS1’s nominal size), and the page accepts 80 % to 200 % (0.264 to 0.66 mm); the bars are 22.85 mm high at 100 % (18.23 mm for EAN-8).
- Quiet zones, the white margins a scanner needs, are part of the picture: EAN-13 11 modules left and 7 right, EAN-8 7 and 7, UPC-A 9 and 9, UPC-E 9 and 7, Code 128, Code 39 and ITF-14 10 and 10.
- EAN and UPC: the digits are under the bars as the standard places them, the first digit of EAN-13 left of the bars, and the guard bars are 5 modules longer. Other types: the text centred under the bars. Code 39 and ITF-14 use wide elements of 3 modules.
- Colour warnings are estimated from the colours: dark bars on a light background read best; red, orange, yellow or light bars and light bars on a dark background are flagged. Only a barcode verifier measures a print.
Files
- SVG: the size in mm, bars on whole modules. PNG: a whole number of pixels per module at the resolution you choose (for example 0.33 mm at 600 dpi is 8 pixels, 0.339 mm), so there are no grey edges; the resolution is written into the file.
- Many barcodes: one value per line, up to 1,000 lines; every valid line gives an SVG and a PNG in one ZIP, and lines with mistakes are listed with the reason. Spaces at the start and end of a value are left out, here and for a single barcode; two values with the same file name get “-2”, “-3” in the ZIP. Tested in Chrome on a laptop: 1,000 EAN-13 codes as SVG and PNG at 600 dpi in about 60 seconds.
Questions and answers
Where do I get an EAN or UPC number for my product?
From GS1, the organisation that issues these numbers, through the GS1 member organisation of your country, for a fee. Shops and marketplaces check that a number belongs to your company.
Which size should I print?
For EAN and UPC, 100 % means 0.33 mm per module (an EAN-13 is then 37.29 mm wide with its margins); GS1 allows 80 % to 200 %. Do not make the bars much shorter than the default, and keep the white margins (quiet zones) free. Print a test and scan it with the scanner that will be used.
Why must the bars be dark and the background light?
Most scanners shine red light and read the difference between dark bars and light spaces. Red, orange or yellow bars look light under red light, and light bars on a dark background are read only by some scanners. The page warns about such colours.
SVG or PNG?
SVG for print and design programs: it has the exact size in mm and stays sharp. PNG for documents and label programs; the page makes it with a whole number of pixels per module at the resolution you choose, so the bar edges stay sharp, and writes that resolution into the file.