Free Barcode Generator
Generate Code 128, Code 39, EAN-13, EAN-8, UPC-A, UPC-E, ITF and ISBN barcodes, preview them live and export print-ready PNG, SVG or PDF files — entirely in your browser.
How to generate a barcode
Step 1 — choose the symbology. Code 128 accepts any letters, numbers and symbols and is the usual pick for internal and logistics labels. EAN-13, EAN-8, UPC-A and UPC-E are the fixed-length retail formats. ITF suits carton and case labels, ISBN covers books.
Step 2 — enter the value. The field validates as you type, so an EAN-13 that is the wrong length or has a bad check digit is flagged before you export anything.
Step 3 — adjust the rendering. Set the bar width and height, the margin around the symbol, whether the human-readable text is shown, and the foreground and background colours.
Step 4 — download. Export PNG for screens and everyday labels, SVG when the artwork will be scaled or sent to a printer, or PDF for a ready-to-print sheet.
Barcode formats supported
Code 128 — variable length, full ASCII, very dense. The default choice for shipping labels, asset tags and warehouse work.
Code 39 — uppercase letters, digits and a few symbols. Older and less dense than Code 128, but still common in automotive and defence supply chains.
EAN-13 and EAN-8 — the retail standard outside North America. EAN-13 carries 13 digits including a check digit; EAN-8 is the compact version for small packs.
UPC-A and UPC-E — the North American retail equivalents, 12 digits and a zero-suppressed short form.
ITF — Interleaved 2 of 5, digits only and always an even count. Printed on shipping cartons where the surface is rough.
ISBN — the book format, rendered as an EAN-13 with the ISBN prefix.
Printing barcodes that actually scan
Print at 100% scale. Shrinking a barcode in a page-layout tool narrows the bars until a scanner can no longer separate them — set the size in the generator instead and place the export at full size.
Keep the quiet zone. The blank margin either side of the symbol is part of the barcode. A rule of thumb is at least ten times the narrow bar width on each side.
Use real contrast. Black bars on a white or light background read best; scanners struggle with red bars, light-on-dark inversions and busy backgrounds.
Mind the direction. Bars should run across the direction of a curved surface, and labels on bottles or tubes need extra height so a handheld reader can find a clean scan line.
Common mistakes and troubleshooting
Wrong length or bad check digit — the fixed-length retail formats reject values that do not add up. Check the digit count first: 13 for EAN-13, 12 for UPC-A, 8 for EAN-8.
A retail barcode that is not yours — EAN and UPC numbers for products sold in shops are issued through GS1. Generating the image is free, but the number itself has to be allocated to you.
Blurred bars — a low-resolution PNG stretched onto a label smears the edges. Use the SVG export whenever the printer accepts it.
Nothing scans at all — test the image with the barcode scanner before committing to a print run, and try a second reader if the first fails.
Ready to try it?
Frequently asked questions
Is this barcode generator free?
Yes. Every format, every setting and every download is free, with no account and no watermark.
Which barcode format should I use?
Code 128 for internal, warehouse and shipping labels. EAN-13 or UPC-A for retail products scanned at a till. EAN-8 or UPC-E when the pack is too small for the full symbol. ITF for outer cartons and ISBN for books.
Can I sell products with a barcode I generate here?
The image is fine to use, but the number behind a retail EAN or UPC must be allocated to your company by GS1. Generating a random 13-digit value would collide with someone else's product.
What is a check digit?
The last digit of an EAN, UPC or ISBN, calculated from the digits before it. Scanners use it to confirm they read the code correctly, which is why an invalid value is rejected here rather than silently rendered.
Should I download PNG or SVG?
SVG for anything printed, because vector bars stay crisp at any size. PNG for screens, quick labels and printers that only accept raster images.
Are my barcode values sent to a server?
No. The symbol is rendered in your browser, so the values you type stay on your device.
How small can a barcode be printed?
Retail formats have published nominal sizes — an EAN-13 is around 37 x 26 mm at 100% and should not go below roughly 80% of that. For Code 128, keep the narrow bar at 0.25 mm or wider on standard printers.
Related tools and guides
- Barcode scanner — Test the symbol you just exported with a camera or an uploaded image.
- Product barcode generator — UPC, EAN and GTIN guidance for retail products.
- Inventory label tools — Codes for stock, assets and storage locations.
- QR code generator — When you need a link, WiFi network or contact card rather than a number.
- Bulk QR code generator — Create many codes at once from a CSV or pasted list.
- All QRPixel tools — Generators, scanners, decoders and bulk utilities in one place.