Barcode generator
Choose the barcode type, type the value, and download it as PNG or SVG. We calculate the check digit, warn you if something is wrong, and you can generate many codes at once.
Paste a column from a spreadsheet. Up to 500 codes at a time.
Generate a number series
Type a value to see your barcode.
Paste or type the values to see the codes.
Appearance
How to use it
- Choose the barcode type. For products sold in stores, use EAN-13 (or UPC-A in the United States and Canada); for labels, shipping, or inventory, use Code 128.
- Type the value. If an EAN, UPC, or ITF-14 is missing its check digit, we calculate it; if there is an extra digit or it is wrong, we tell you and suggest the fix.
- Adjust the size, margins, colors, and text under “Appearance”. You see the result instantly.
- Download the code as PNG or SVG, or copy it to the clipboard. For many codes, open “Several codes”, paste one value per line, and download a ZIP.
Frequently asked questions
Which barcode type should I use?
For products sold in stores and supermarkets, EAN-13 in most of the world and UPC-A in the United States and Canada. For internal labels, inventory, and shipping, Code 128, which supports letters and numbers. For cartons holding EAN products, ITF-14. If your system or your customer asks for a specific type, use that one.
Can I use these codes to sell in stores?
The drawing of the code is correct, but retail EAN and UPC numbers are assigned to each company: the prefix comes from GS1 (GS1 US in the United States). With a made-up number it works for testing, internal catalogs, or mockups, but a retail chain will only accept numbers registered in your name.
What is the check digit, and why is it calculated automatically?
It is the last digit of EAN-13, EAN-8, UPC-A, and ITF-14. It comes from a formula applied to the previous digits and lets scanners detect mistakes. If you type one digit fewer, we calculate it; if you type them all and the last one does not match, we show you the correct one.
How do I print a code that scans?
Use black bars on a white background, leave a blank margin on both sides (at least 10 times the width of one bar), and do not shrink it: an EAN-13 reads well down to 80% of its nominal size, which is about 37 × 26 mm. Download “Large” or “Extra large”, or SVG, for sharp printing. Always test with the real scanner before a print run.
Can I generate many codes at once?
Yes. In “Several codes”, paste one value per line (for example, a column from a spreadsheet) or create a number series, and download a ZIP with all the PNG or SVG files. Up to 500 at a time. Lines with errors are listed with the reason.
Is my data uploaded to a server?
No. The codes are drawn in your browser, and nothing is sent to or stored on our servers. Only the type and appearance you chose are remembered in your browser.
Barcode types and what they are for
- EAN-13 and EAN-8: retail products. The first three digits show where the company was registered (for example, 501 is the United Kingdom and 400 to 440 is Germany).
- UPC-A and UPC-E: the North American equivalent; a UPC-A is an EAN-13 that starts with 0.
- Code 128: the most flexible; letters, numbers, and symbols in a small space. Ideal for shipping labels and inventory.
- Code 39 and Code 93: capital letters and numbers; common in industry, healthcare, and badges.
- ITF-14 and ITF: numbers only, for cartons and bundles.
- Codabar, MSI, and Pharmacode: specific uses in libraries, inventory, and medicine packaging.
How the check digit is calculated
In EAN, UPC, and ITF-14, the digits are read from right to left, multiplying alternately by 3 and by 1. The results are added up, and the check digit is whatever is needed to reach the next multiple of ten. For example, 590123412345 ends with a 7: 5901234123457.
Tips for a good scan
Choose dark bars on a light background with good contrast, respect the margins, and avoid stretching the image. Use PNG for screens; for print shops or large labels, use SVG.
How to print the labels
The PNG is saved at 300 dots per inch: if you place it in a document or print it without scaling, it measures on paper the size in millimeters that the tool shows. To change it, change the bar width or the height instead of stretching the image, because stretching distorts the bars and the scanner may fail. For large labels or a print shop, download the SVG.
Many codes at once
In “Several codes” mode, paste one value per line or generate a number series with a prefix. Lines with errors are flagged one by one without stopping the rest, and you can download everything as a ZIP of PNG or SVG files. The limit is 500 codes at a time.
If the scanner does not recognize it
- Check that the value has the right number of digits and the right check digit.
- Leave a clear margin on both sides of the bars.
- Print at a good resolution and do not reduce the size below the minimum each system requires.
Updated on September 29, 2026