How to Generate & Download a Barcode Online
This free online barcode generator runs entirely in your browser. Nothing you type is uploaded, stored or logged — the barcode image is drawn locally with JavaScript and the downloaded file is created on your own device.
- Choose a symbology. Pick the barcode format that matches your use case — Code 128 for shipping and internal SKUs, EAN-13 or UPC-A for retail products, Code 39 for industrial asset tags, ITF-14 for cartons, and MSI for warehouse bins.
- Enter your data. Type or paste your value into the Barcode Value field. The preview updates instantly, and the tool tells you exactly what characters or digit count the selected format needs.
- Customize the look. Adjust bar width, barcode height, quiet-zone margin, human-readable text size and alignment, plus bar and background colors — with live value badges next to each slider.
- Check the preview. Make sure the human-readable text matches your data and that there is a clear, unbroken white quiet zone on both sides of the bars.
- Export. Download a high-resolution PNG for documents and web use, a crisp SVG for print and design software, or copy the image straight to your clipboard.
- Test before you print. Scan the downloaded barcode with a real scanner or a phone app at the final printed size. Never send a barcode to mass printing without a physical scan test.
Barcode Formats Explained
Choosing the right symbology matters more than any other setting. Some formats are numeric-only, some are strictly fixed-length, and each is designed for a specific industry. Here is a quick reference for the seven formats supported above.
| Format | Typical use | Accepted input | Length |
|---|---|---|---|
| CODE128 | Shipping labels, logistics, internal SKUs, asset tags | ASCII letters, digits and standard symbols | 1–48 characters (practical) |
| EAN13 | International retail product packaging | Digits 0–9 only | 12 digits (check digit added) or 13 |
| EAN8 | Small retail packaging where space is limited | Digits 0–9 only | 7 digits (check digit added) or 8 |
| UPC | North American retail products (UPC-A) | Digits 0–9 only | 11 digits (check digit added) or 12 |
| CODE39 | Industrial labels, warehousing, asset tracking | 0–9, A–Z, and − . space $ / + % | 1–43 characters |
| ITF14 | Outer cartons and shipping cases | Digits 0–9 only | 13 digits (check digit added) or 14 |
| MSI | Warehouse shelves, inventory bins, internal tracking | Digits 0–9 only | 1–20 digits |
Code 128 — the most flexible option
Code 128 encodes the full ASCII set efficiently, which makes it the go-to choice for shipping labels, serial numbers and internal inventory codes. It automatically switches between character sets to keep the symbol compact, so it usually produces shorter barcodes than Code 39 for the same data.
EAN-13, EAN-8 and UPC-A — retail standards
These are fixed-length, numeric-only symbologies used at the point of sale. The final digit of every EAN or UPC barcode is a check digit calculated from the preceding digits; this generator computes it automatically, which is why you can safely enter 12 digits for EAN-13, 7 for EAN-8, or 11 for UPC-A.
Important: To sell products in retail stores you must licence a genuine company prefix from GS1. This tool is a barcode image generator — it does not sell, register or assign product numbers.
Code 39 — industrial simplicity
Code 39 is self-checking, easy to print even with low-resolution printers, and widely supported by legacy scanners. It only accepts uppercase letters, digits and a handful of symbols, so it is ideal for asset tags and internal warehouse labels where high data density is not required.
ITF-14 — cartons and logistics
ITF-14 (Interleaved 2 of 5, 14 digits) is designed for corrugated outer cartons where a traditional barcode can smudge. It is the standard for trade units and shipping cases in many supply chains.
MSI — warehouse bins
MSI (also known as Modified Plessey) is a numeric-only symbology commonly used for shelf and bin labels in warehouses. It is not intended for retail products.
Printing & Scanning Best Practices
A barcode that looks perfect on screen can still fail at the scanner. These rules cover the mistakes that cause most read failures.
1. Always keep a quiet zone
The quiet zone is the blank margin on the left and right of the bars. Scanners use it to detect where the barcode starts and ends. As a rule of thumb, keep a margin of at least 10× the width of the narrowest bar on each side. The Quiet Zone / Margin slider above helps you add it — never set it to zero for print work.
2. Use high contrast
Dark bars on a light background scan best. Avoid dark backgrounds with light bars (inverted barcodes), low-contrast color pairs such as yellow on white, and any red-on-white combination — most laser scanners use red light and cannot read red ink. The tool warns you automatically when the contrast ratio is too low.
3. Respect the minimum size
Every symbology has a recommended X-dimension (the width of the narrowest bar). For retail EAN/UPC codes the standard minimum is around 0.264 mm. If you shrink a barcode below the specification, cheap scanners will start failing. Increase the Bar Width slider before you scale the image down in a design program.
4. PNG vs SVG — which should you use?
- PNG is a raster image. Use it for websites, emails, Word documents and anywhere the barcode will be displayed at a fixed size. Export it at a high resolution so it stays sharp when printed.
- SVG is a vector format with mathematically defined edges. Use it for professional print work, Illustrator, Inkscape, CorelDRAW and any label layout — it scales to any size with perfectly crisp bars.
5. Print at 100% scale
When printing from a PDF or design program, always choose Actual size or 100%. "Fit to page" scaling silently shrinks the bars and can push them below the readable minimum.
6. Test with a real scanner
Verify every barcode with the actual hardware that will be used at the point of scan — not just a phone app. Scan it multiple times, at different angles, and check that the decoded value matches your data character for character.
7. Avoid resizing in image editors
Resampling a PNG barcode softens the bar edges and creates grey gradients that confuse scanners. If you need a different size, regenerate the barcode with a different Bar Width setting instead of stretching the image.
Frequently Asked Questions
Is this online barcode generator really free?
Yes. Every feature — all seven barcode formats, color and size customization, PNG and SVG export, clipboard copying and bulk generation — is completely free, with no account, no watermark and no export limit.
Are my barcode numbers or data uploaded to a server?
No. This is a 100% client-side application. The barcode is drawn in your browser by JavaScript, and the downloadable file is created on your own device. Your data is never transmitted, stored or logged anywhere. You can even disconnect from the internet after the page has loaded and keep generating barcodes.
Which barcode format should I choose?
Use Code 128 for shipping, logistics and internal inventory because it handles letters, numbers and symbols. Use EAN-13, EAN-8 or UPC-A for retail products sold in stores. Use Code 39 for industrial asset labels, ITF-14 for corrugated shipping cartons, and MSI for warehouse shelf or bin labels.
What is the difference between PNG and SVG export?
PNG is a raster image made of pixels — perfect for websites, emails and office documents at a fixed size. SVG is a vector file made of shapes and lines, so it stays perfectly sharp at any size and is the better choice for professional print and design work. Both are generated directly in your browser.
Why is my barcode not scanning?
The most common causes are: (1) the quiet zone was removed, so the scanner cannot find the start of the symbol; (2) contrast is too low, or the barcode was printed as light bars on a dark background; (3) the barcode was scaled down too far or resampled in an image editor; (4) the printed ink spread, merging the thin bars. Regenerate at a larger bar width, keep the margin, and use black bars on white.
What is a quiet zone and why does it matter?
The quiet zone is the empty margin on both sides of the barcode. Scanners rely on it to locate the symbol's start and stop patterns. If a logo, text or page edge sits right next to the bars, the scanner may fail or read the wrong value. Keep at least 10 times the narrow-bar width clear on each side.
Can I generate multiple barcodes at once?
Yes. Open the Bulk Generator tab, paste one value per line, and press Generate Barcodes. Every valid line is rendered in a grid, invalid lines are flagged with a clear note, and you can print the whole sheet with a single click using the built-in print stylesheet.
Do I need a GS1 licence to use these barcodes?
For internal, personal or test use — no. But if you want to sell products through retail channels, the EAN/UPC numbers you encode must come from a company prefix that you license from GS1. This tool generates the barcode image; it does not register, assign or sell product numbers.
Can I use the generated barcodes commercially?
Yes. Barcode images generated by this tool are yours to use freely in your own products, packaging, labels and documents. The only restriction is legal rather than technical: retail product numbers must be properly licensed through GS1.
Does the generator work offline?
Once the page and its barcode library have loaded, all generation, customization and export happens locally. After that you can disconnect from the network and continue working. Advertisements are the only part of the page that requires an internet connection.