Free Barcode Generator
Make print-ready barcodes at the right GS1 size: UPC-A, EAN-13, ITF-14, Code 128, Code 39, Data Matrix and more. Download SVG, PNG, EPS or PDF, or turn a list into a ZIP or a sheet of labels. Nothing leaves your browser.
By The eancheck teamPublished
Which barcode do I need?
The type depends on where the barcode will be scanned and what it has to carry. A shop till expects a retail barcode with a 12 or 13 digit product number. A warehouse scanner reading a carton expects a case code. Internal labels for assets, bins and serial numbers can use any type your scanners read, which usually means Code 128 or Data Matrix. If the product will sit on a shop shelf and you are not sure, use EAN-13: scanners in every country read it, including in the USA.
| Type | Holds | Scanned at |
|---|---|---|
| UPC-A | 12-digit GTIN | Checkouts in the USA and Canada |
| EAN-13 | 13-digit GTIN, including ISBN for books, with the 5-digit price add-on | Checkouts everywhere else, and in North America too |
| ITF-14 | 14-digit GTIN for a case or carton | Warehouses, goods-in, distribution centres |
| Code 128 | Any printable text, compact | Shipping, inventory, serial numbers |
| Code 39 | Capitals, digits and a few symbols | Older systems, asset tags, automotive and defence |
| Data Matrix | Up to about 2 000 characters, or GS1 data | Small parts, electronics, medicines |
The other types in the list are for narrower jobs. EAN-8 fits packs too small for an EAN-13. Interleaved 2 of 5 carries an even number of digits densely and is common on older logistics labels. Codabar still turns up on older library cards, MSI Plessey on supermarket shelf edges, and Pharmacode on medicine cartons where a packing line checks it. PDF417 holds a lot of text in a short strip, which is why boarding passes use it. Aztec reads well from a phone screen and needs little or no quiet zone, so transport tickets use it.
In the tool each type is a tile with a small drawing of its bars, so you can match it against a code you already have. Have an old 10-digit book number? Convert the ISBN-10 to 13 digits before you draw it as an EAN-13.
The number comes first
A barcode is a picture of a number. Anyone can draw the picture; the number is what a shop or marketplace checks. For retail products the number is a GTIN, and GTINs are issued through GS1, the standards body that runs the system. Your company licenses a company prefix, or a single GTIN, from its national GS1 office and assigns the item numbers itself. Not sure what kind of number you have been given? The barcode identifier tells you what it is. In the USA a single GTIN costs $30 with no yearly fee; a block of 10 costs $250 plus $50 a year.
Resellers sell numbers more cheaply. They are real numbers, but they were licensed to someone else, so the company behind them in the GS1 database is not you. That is why marketplaces such as Amazon and many large retailers reject them. If you only need internal labels, any numbering works; if the product will be sold through shops, use a number licensed to your brand.
Print size and quiet zones
GS1 sets the size of a retail barcode by the width of its narrowest bar, the X-dimension. Printers and designers still talk about it as magnification, where 100% means 0.330 mm. At 100% an EAN-13 is 37.29 mm wide including its quiet zones, with bars 22.85 mm tall and the digits below them. The GS1 General Specifications allow 80% to 200% for products scanned only at the till. A product that is also scanned in a warehouse needs at least 150%.
Pick a size with the chips for 80%, 100%, 150% and 200%, or fine-tune it with the slider. The real size shows as you change it. US packaging specs often give the bar width in mils, thousandths of an inch; 100% is 13 mils, and you can switch the units to mils or inches in Settings. To see what a pack has room for, pick a magnification here:
| Type | Width with quiet zones | Bar height | X |
|---|---|---|---|
| EAN-13 | 37.29 mm (1.47 in) | 22.85 mm | 0.330 mm |
| UPC-A | 37.29 mm (1.47 in) | 22.85 mm | 0.330 mm |
| EAN-8 | 26.73 mm (1.05 in) | 18.23 mm | 0.330 mm |
Bar height without the digits; the digits add about 3 mm at 100%. GS1 allows 80% to 200%. Source: GS1 magnification table (GSCN 23-112).
Open an EAN-13 at 100%Below 80% is outside the GS1 range with one exception: labels printed on demand on a thermal or laser printer may go down to 75%, as long as the barcode covers no less area than it would at 80%. Do not shorten the bars of a retail barcode to fit a small pack. GS1 allows that only when there is no other way, such as on a tightly curved surface. Scale the whole barcode down, or switch to EAN-8.
The blank space each side of the bars, the quiet zone, is part of the barcode. An EAN-13 needs 11 modules on the left and 7 on the right; a UPC-A needs 9 on each side. The preview tints them blue. A common reason a barcode fails at the till is a product name or a box edge pulled into that space. If a printed code is already smudged and you need its number back, recover the missing digits with barcode repair.
Cartons work differently: an ITF-14 runs from 48.7% to 100% (X from 0.495 to 1.016 mm), its bars stay 31.75 mm tall at every size, and the bearer box around it stops a scanner from reading half a code on corrugated board.
Printing it
Most barcodes that fail were drawn right and printed wrong. Before you download, choose how it will be printed under Printing on. Office or home printer gives you a PDF to print at 100%. Product packaging (print shop) gives you an EPS for the designer; if the print shop asks for a bar width reduction, enter it in Settings. Amazon product barcode keeps the full size with the digits shown. Thermal label printer, at 203, 300 or 600 dpi, snaps every bar to whole printer dots, because a bar that falls between dots prints uneven. The Download button follows that choice, and the menu next to it has the other formats.
To check a printer before a long run, download the print test page. It has a 100 mm ruler next to your barcode, so a ruler on your desk shows at once whether "fit to page" shrank it.
Print dark bars on a light background. Black on white is safest. Red bars disappear under the red light most scanners use, and a barcode on a dark background does not scan at all. If your artwork needs colour, set the bar and background colours in Settings. The tool checks the contrast the way a scanner sees it, under red light, and warns you before red on white goes to print.
Settings you change are kept for your next visit, and each one shows as a chip under the preview. Look at them before a print run, so a rotation or a colour from last week does not end up on today's labels.
SVG, EPS, PDF or PNG?
All four formats come from the same set of shapes, measured in millimetres, so a barcode is the same size in every file.
SVG, EPS and PDF are vector files, so the bars stay sharp at any size. Send SVG to a designer or label program, EPS to a print shop that still works in Illustrator or InDesign, and PDF when you want to print the barcode yourself: the page is exactly the size of the barcode. PNG is made of pixels. Use it for Word, spreadsheets and web pages, pick 600 dpi if it will be printed, and never stretch it larger afterwards. When the barcode has to run up the side of a narrow label or box, turn it 90 degrees in Settings before you download.
Many barcodes at once
Switch the tool to Bulk and paste one code per line, or upload a CSV exported from a spreadsheet. Paste a mixed list of product numbers and the tool picks the type from the digit count: 8 digits make an EAN-8, 12 a UPC-A, 13 an EAN-13 and 14 an ITF-14. A name after a comma, or in a second column, is kept and printed under the barcode on label sheets. A third column can set the type per row, using names such as ean-13 or code-128. Every row is checked as you paste, and the table shows which ones were fixed and which failed, with the reason.
For serial labels, the sequence builder makes a numbered run such as ASSET-0001 to ASSET-0500. Settings can also replace the digits under the bars with your own text, or hide them. Keep the digits on UPC and EAN codes, where GS1 expects them shown.
The ZIP holds one file per barcode in the format you pick, named after its value, plus a failed-rows.csv when something did not make it. The label sheet PDF lays the barcodes out on Avery L7160, L7163, L7651, 5160 or 5163 sheets, or on a plain A4 or Letter grid with as many columns and rows as you need. When a label is too small for a GS1 barcode to stay above its minimum size, the tool says so and suggests a sheet that fits. One run takes up to 5 000 codes.
Logistics labels and GS1 data
Pallet and shipping labels usually carry more than a product number: a batch, a best-before date, a serial shipping container code. That data is written with GS1 Application Identifiers, the numbers in brackets such as (01) for the GTIN and (17) for the expiry date. Linear labels use GS1-128; small items use GS1 DataMatrix, which this generator draws when you tick the GS1 option on Data Matrix. To read or check an existing string of AIs, use the GS1-128 parser, or check a whole list of AI strings at once.
GS1 wants checkout scanners everywhere able to read 2D codes by the end of 2027, so a QR code with a GS1 Digital Link web address can sit next to the EAN or UPC. It is added to the linear barcode, not a replacement for it. Build one with the Digital Link generator, or build Digital Links for a whole catalogue at once.
Nothing leaves your browser
The barcodes are drawn on your own computer. Nothing you type or upload leaves it, which matters when a list holds unreleased products or customer serial numbers. The tool remembers its settings, such as Printing on, units, colours, rotation and text mode, in your own browser, so they are there next visit. A share link carries the barcode in the part of the address after the "#", which the browser does not send with the page request. The generator reads it and then removes it from the address bar. A chat app or your browser history still keeps the whole address, so keep confidential serial numbers out of shared links.
Standards behind the shapes
The bars come from BWIPP (Barcode Writer in Pure PostScript), an open-source barcode engine. Every example of the types a barcode reader can decode is decoded back by a software barcode reader (zxing) in our tests before it ships. Sizes follow the GS1 EAN/UPC specification and the GS1 tables for ITF-14.
Frequently asked questions
Is this barcode generator free?
Yes. Every type, every format, bulk mode and label sheets are free, with no sign-up and no watermark. The generator runs in your browser, so there is no server cost to pass on and nothing to limit. The barcode image is yours to use however you like; what decides whether a shop accepts it is the number inside, not where the picture was made.
Can I make up my own barcode number?
For labels used only inside your company, yes. GS1 sets aside prefixes 040 to 049 for numbers a company uses internally, and 200 to 299 for restricted circulation, such as a shop's own weighed goods, with rules set by each country's GS1 office, so they never clash with real products. For anything sold through shops or marketplaces, no: the number has to be a GTIN licensed to your brand, because retailers and Amazon look it up in the GS1 database.
Do I need a different barcode for each size, colour or flavour?
Yes, for retail products. The GS1 GTIN Management Standard gives each variant a shopper can tell apart its own GTIN, so a T-shirt in three sizes and two colours needs six numbers and six barcodes. A change to the declared net content, such as 500 g to 450 g, also needs a new GTIN. The generator draws one barcode per number; bulk mode makes the whole set in one ZIP.
What size should a UPC or EAN-13 barcode be?
At 100% magnification an EAN-13 or UPC-A is 37.29 mm wide including its quiet zones, with bars 22.85 mm tall and the digits underneath. GS1 allows 80% to 200% for products scanned at a till. Labels printed on demand on a thermal or laser printer may go down to 75% if the bars are made taller. Scale the whole barcode; do not cut the bars short.
Can I make a barcode for Amazon?
Yes, if you have a GTIN for the product. Amazon checks product GTINs against the GS1 database, so the number needs to be licensed to your brand. Choose "Amazon product barcode" under Printing on to get the full-size barcode with its digits. The FNSKU labels Amazon uses inside its warehouses are a different thing; Seller Central prints those for you.
Why does my barcode not scan?
The usual causes are a missing quiet zone (text or a box edge too close to the bars), printing below the minimum size, low contrast (red or light bars, or a dark background), a low-resolution PNG scaled up, or bars cut short. The preview tints the quiet zones blue so you can see how much empty space each side needs, and the colour settings warn when a scanner's red light will not see the bars.
Why do my barcodes print blurry on a thermal label printer?
A thermal printer can only print whole dots, 0.125 mm each at 203 dpi. When a bar is 2.6 dots wide, the printer rounds some bars up and some down, and the scanner sees uneven widths. Choose your thermal printer under Printing on and the bars snap to whole dots. Then print the PNG at 100%, with "fit to page" off, and lower the darkness if bars run together.
How can I check that the barcode printed at the right size?
Download the print test page PDF. It holds your barcode, a 100 mm ruler and a 50 mm square. Print it at 100% or "actual size", then measure the ruler with a real ruler. If it measures 97 mm, your printer or PDF viewer is shrinking the page, and every barcode you print that way will be 3% too small. Turn off "fit to page" and print again.
How do I put a barcode in Excel or Word?
Make the barcode here and insert the PNG or SVG as a picture. That is safer than a barcode font, because a font only draws bars: Code 128 also needs start, check and stop characters worked out by an encoder, and Code 39 needs asterisks around the text. For a whole column of codes, paste the column into bulk mode and download a ZIP with one file per code, named after its value.
Is a QR code a barcode?
Yes, a two-dimensional one. This generator focuses on product and logistics barcodes. For a QR code that carries a GS1 product identifier, use the GS1 Digital Link generator on eancheck.com, which builds the web address in the format checkout scanners and phones both understand. If a QR code on a label has stopped scanning, the QR code recovery tool can often still read it.
By The eancheck teamPublished
Questions or corrections? Email the eancheck team.