English
How to make a barcode online
This free barcode generator draws Code 128, EAN-13, EAN-8, UPC-A, Code 39, ITF-14, ITF, Codabar and GS1-128 in your browser, so the numbers you type are never uploaded. The preview updates as you type.
- Pick the barcode type. If you are not sure, Code 128 handles any text and is the safe choice for inventory, orders and shipping.
- Type the value. For EAN, UPC and ITF-14 leave off the last digit and the tool adds it; the status line shows the check digit it used.
- Set the bar width, height and colours. A bar width of 3 px or more gives a sharp PNG.
- Download a PNG for documents and screens or an SVG for print, or open the batch section below to make many at once.
Dark bars on a white background scan best. The tool warns you when the contrast is low or the colours are inverted.
Which barcode type should I use?
| Type | What it holds | Typical use |
|---|---|---|
| Code 128 | Any ASCII text, compact for digits | Inventory, order numbers, shipping labels |
| EAN-13 | 13 digits | Retail products outside North America, books (ISBN) |
| UPC-A | 12 digits | Retail products in the US and Canada |
| EAN-8 | 8 digits | Very small packs |
| ITF-14 | 14 digits | Cartons and cases |
| Code 39 | A to Z, 0 to 9 and a few symbols | ID badges, parts, older systems |
| Codabar | Digits and a few symbols | Libraries, labs, parcel services |
| GS1-128 | Code 128 with data fields such as expiry date and batch | Pallet and logistics labels |
For anything you only use inside your own business, Code 128 is the better pick. It is shorter than Code 39 for the same data and every scanner reads it. Choose an EAN or UPC only when the product goes through a shop's checkout.
How is the check digit calculated?
EAN-13, EAN-8, UPC-A and ITF-14 all end in a check digit that lets a scanner catch a misread. Starting from the right, multiply the digits by 3, 1, 3, 1 and so on, add them up, and the check digit is whatever brings the total up to a multiple of 10.
So the full number is 5901234123457. If you type 13 digits and the last one is wrong, the tool shows the correct digit and a button to swap it in. Code 128 has its own check symbol (modulo 103) that is added inside the bars and never shown as text. Code 39 only uses a check character if you switch the option on.
One Code 39 quirk: the symbols $ / + % can combine with the next letter into a "full ASCII" character on scanners that have that mode switched on, so a value like A+B may be read as Ab. Keep those four symbols out of Code 39 values, or use Code 128.
Can I use an EAN or UPC I generated myself?
The barcode will scan, but the number must be yours to use. Shops and marketplaces check EAN and UPC numbers against the GS1 database, and a number you invented may already belong to another product. If you sell through retailers, get your numbers from GS1 in your country.
For stock you track yourself, two options avoid the problem. Use Code 128 with your own SKU. Or, if you want an EAN-13 look, the prefixes 20 to 29 are reserved for in-store use and never collide with real products. Printing a retail EAN with your own made-up digits is the one thing to avoid.
How big should a printed barcode be?
An EAN-13 at 100% magnification is about 37 × 26 mm including its blank margins, and the standard allows anything from 80% to 200%. The narrowest bar at 100% is 0.33 mm, so the smallest allowed is about 0.26 mm.
| Bar width in the tool | Printed at 300 dpi | Printed at 600 dpi |
|---|---|---|
| 2 px | 0.17 mm (too thin) | 0.08 mm (too thin) |
| 3 px | 0.25 mm (borderline) | 0.13 mm (too thin) |
| 4 px | 0.34 mm (good) | 0.17 mm (too thin) |
| 8 px | 0.68 mm (large) | 0.34 mm (good) |
To stay in range when you print a PNG, use the SVG or the label sheet PDF, where size is set in millimetres. The sheet preview shows the real width of the narrowest bar and warns when it falls under 0.25 mm.
How do I make many barcodes or a sheet of labels?
Paste one value per line in the batch box. Every line uses the type and style chosen above, and lines with a problem are listed in red with the reason. From there you can:
- Download a ZIP with one PNG or SVG per line, named after the value.
- Download a label PDF laid out on A4 or US Letter. Pick a common grid (3 × 8, 3 × 7, 5 × 13, 2 × 4, one per page, or Letter 3 × 10) or set your own columns, rows, margins and gaps.
- Print copies: type the value once and set copies to 24 to fill a sheet with the same code.
Print the PDF at 100% (turn off "fit to page") or the labels will drift out of alignment. Try a sheet on plain paper and hold it against a label sheet before you use the real stock. Printers vary by a millimetre or two, and the margin fields let you correct that.
Why won't my barcode scan?
- Low contrast or inverted colours. Light bars on a dark background fail on many laser scanners.
- No quiet zone. The blank space on each side matters. Cropping it close to the bars is the most common mistake.
- Bars too thin for the printer. A 203 dpi thermal printer prints dots of 0.125 mm, so two dots per bar (0.25 mm) is the minimum and three is safer. Use a wider bar width.
- Wrong type enabled. Some handheld scanners ship with Code 39 or Codabar switched off.
- Reflections or curves. A glossy label or a small bottle breaks up the bars. Test the real item.
To check a code you have made, scan it with the QR and barcode scanner on this site, which also reads images you upload.
Frequently asked questions
How do I generate an EAN-13 barcode?
Choose EAN-13, type the first 12 digits and the thirteenth (check) digit is added for you. For 590123412345 the result is 5901234123457. Download it as PNG or SVG. If you type all 13 digits and the last one is wrong, the tool tells you the right digit.
How is the barcode check digit calculated?
For EAN and UPC, work from the right: multiply every digit by 3, 1, 3, 1 and so on, add the results, and take the amount needed to reach the next multiple of 10. For 590123412345 the sum is 83, so the check digit is 7. Code 128 uses a different method (modulo 103) and the tool shows it.
Is this barcode generator free, and do I need to sign up?
Yes, it is free with no account, watermark or limit on downloads. The barcodes are drawn in your browser, so the numbers you type never leave your device.
Can I sell products with an EAN or UPC I made here?
The symbol will scan, but the number has to be one you own. Retailers and marketplaces such as Amazon expect numbers issued through GS1, and a made-up number can clash with someone else's product. For stock you only track inside your own business, use Code 128, or the EAN prefixes 20 to 29, which are reserved for in-store use.
Which barcode type should I use?
Use EAN-13 or UPC-A for retail packaging, Code 128 for inventory, shipping and order numbers, ITF-14 for cartons, and GS1-128 when you need expiry dates or batch numbers on a label. Code 39 and Codabar are mostly for older systems, badges and libraries.
How big should a printed barcode be?
An EAN-13 at 100% is about 37 × 26 mm including its margins, and the standard allows 80% to 200%. Keep the bars at least 0.26 mm wide for EAN and UPC. The label sheet tool shows the narrowest bar in millimetres and warns when it gets too thin.
How do I print a sheet of barcode labels?
Enter your values one per line, pick a sheet layout such as A4 3 × 8 or US Letter 3 × 10, and download the PDF. Print it at 100% scale (not 'fit to page') on label paper, and test one sheet on plain paper first.
Why won't my barcode scan?
Check contrast first: dark bars on a light background work best, and inverted colours often fail. Then check the margins on both sides, the printed size, and that the scanner has the type switched on. A glossy surface or a curved bottle can also cause reflections.