Free barcode generator
Pick a type, type the number and download SVG or PNG. Check digits checked, free with no account.
Letters, digits and keyboard symbols. The default for shipping labels and part numbers.
On this page
Which barcode? EAN-13 or UPC-A for shops, Code 128 for shipping
Use EAN-13 or UPC-A for a product sold in shops, and Code 128 for shipping and warehouse labels. Here are all twelve types. Each name opens the tool set to it.
- Code 128
- Letters, digits and keyboard symbols. The default for shipping labels and part numbers.
- EAN-13
- The 13-digit number on retail packaging outside North America.
- EAN-8
- The short 8-digit retail barcode, for packs too small to fit an EAN-13.
- UPC-A
- The 12-digit number on retail packaging in North America.
- Code 39
- Still used by some postal services. Capitals, digits and a few symbols only.
- ITF-14
- The carton and case code, printed on corrugated board where fine bars fail.
- GS1-128
- Code 128 carrying GS1 application identifiers: batch, expiry, serial.
- ISBN
- The barcode on the back of a book, drawn from its ISBN-10.
- Data Matrix
- A square that stays readable when small or marked directly onto a part.
- GS1 DataMatrix
- Data Matrix carrying GS1 fields: product number, batch, expiry, serial. The one on medicine packs, and one of the two 2D codes GS1 names for retail tills.
- PDF417
- The stacked block on a driving licence or a boarding pass. Holds a lot of text.
- Aztec
- Rail tickets and airline boarding passes. Needs no quiet zone, so it fits a crowded ticket.
Data Matrix or a QR code? For a short serial, Data Matrix comes out smaller. For a code a customer scans with a phone, use the QR code generator.
Check digits: typos caught before you print
The last digit of a UPC or EAN is worked out from the others. Type 4006381333391 and you’re told it should end in 9, not 1.
Don’t just change the last digit. Here the 9 and the 3 before it were swapped, so the right number is 4006381333931.
ISBN-10 has its own check, and it can end in X. It’s drawn as the 13-digit book barcode.
GS1-128 takes its fields in brackets, like (01)09501101020917(17)271231. A wrong (01) check digit is refused.
Before you print: keep the margin, dark on light, digits under
- Keep the blank margin. Scanners need clear space beside the bars. The file already has the space each type needs (for EAN-13, 11 bar widths on the left and 7 on the right), so don’t crop it or butt it against a border.
- Dark bars on a light background. Black on white is the safe choice.
- Add the digits yourself. The file is the bars alone, so it needs no font. Set the number under them in your layout, because people type it when the bars won’t scan.
- Send the SVG. It stays sharp at any size. The same number always gives the same file, byte for byte, so you can compare two downloads to prove the artwork hasn’t changed.
GS1 DataMatrix, every field checked
The square on medicine packs. It holds numbered fields such as the product number, batch, expiry and serial.
Open the tool with GS1 DataMatrix, start from a GTIN, SSCC or GLN, and add fields. Paste a bracketed string and it fills them in. Every error names the field to fix.
At the till, a 2D code goes beside the EAN-13 or UPC-A, not instead of it. One click hands your fields to the Digital Link generator below.
Every field, check and print size
- Fields: 01, 10, 17, 15, 11, 13, 21, 310n, 30, 00, 02, 37, 400, 410, 411, 412, 413, 414, 8200.
- Checks: check digits, short GTINs padded to 14, dates as real YYMMDD days (00 means end of month), and text limited to GS1’s set of 82 allowed characters, so no space, # or @.
- Rules between fields: a batch, date or weight needs a product number, and a serial needs (01).
- Order: fixed-length fields go first, and the separators are written for you. An out-of-order paste gets a one-click fix.
- Printed lines go beside the square in Helvetica Bold. Untick them if your artwork sets its own.
- Read it back runs the picture through our scanner’s decoder and ticks each field.
Square sizes, from GS1
The width of one small square, by where it’s printed. The PDF exports at exactly that size. From the General Specifications, release 26.0.
| Printed on | Smallest | Target | Largest |
|---|---|---|---|
| Retail pack, beside its 1D barcode | 0.396 mm | 0.495 mm | 0.990 mm |
| Healthcare item not sold at a till | 0.254 mm | 0.380 mm | 0.990 mm |
| Pharmacy item also shipped in cartons | 0.750 mm | 0.750 mm | 1.520 mm |
| Carton or case in the warehouse | 0.743 mm | 0.743 mm | 1.500 mm |
A barcode a phone can open: GS1 Digital Link
A printed barcode can’t be changed or counted, and a phone can’t open it. GS1 Digital Link puts the same product number in a QR code as a web address. Tills that read 2D codes get the number, and phones open your page.
- https://yourbrand.comYour domain
- The link is yours, whoever makes your codes.
- /01/09506000134352The GTIN
- 01 means a product number follows: the one under your barcode.
- /10/LOT42Batch (optional)
- 10 means batch or lot.
- ?17=271231Expiry (optional)
- 17 is the expiry date, as YYMMDD.
Static for the till, dynamic to change it later
- Static: the link on your own domain. A till that reads 2D codes finds the product, and the code never depends on us. Free, no account.
- Dynamic: our short link, which sends each scan to the page you saved. You can change the page and count scans after the packs ship, but a till can’t read a GTIN from it. The Free plan includes it.
Use both: the static code where the till scans, and a dynamic one on the insert for recalls and care guides.
How small it can print on the pack
Paste the link and pick the surface. Keep the code off folds, seals and tight curves.
Check a Digital Link you already have
Paste an address from a scanner or a proof to see its GTIN, redrawn as a barcode and a QR code. It runs in your browser. A passing check digit proves the number is consistent, not that it’s yours.
We follow the GS1 Digital Link URI Syntax, release 1.7.0, ratified August 2026.
Questions about barcodes
How do I make a UPC barcode?
Pick UPC-A and type all 12 digits. Eleven are refused, because checking the twelfth against your paperwork is what catches a typo.
Do you issue barcode numbers?
No. A UPC or EAN number belongs to the company that licensed it from GS1. A number you don’t own scans as someone else’s product.
Where do I find my GTIN?
It’s the number under the barcode on your pack: 8, 12, 13 or 14 digits. Your local GS1 office issues them.
Is this barcode generator really free?
Yes. No account, no watermark and no limit. The data is in the bars, so a scan never reaches our servers.
Do I have to stop using UPC barcodes after Sunrise 2027?
No. Sunrise 2027 is GS1 US’s goal for US tills to read 2D codes in 2027, and it isn’t a law. A UPC-A or EAN-13 still rings up, so print the 2D code beside it.
Check it at the source
- GS1 Digital Link. The standard, from GS1
- GS1 US: Sunrise 2027. Tills reading 2D codes
The Free plan gives you 3 editable codes. Paid plans start at $5 a month. See pricing or browse every tool.