Barcode Generator
Turn any product number or piece of text into a scannable barcode. Pick a format, watch it draw itself live, and download a print-ready PNG or SVG — everything happens in your browser, and the check digit is worked out for you.
Runs in your browser — your files never leave this device
What is a barcode generator?
A barcode generator turns a number or piece of text into a scannable barcode — the pattern of bars a shop till or warehouse scanner reads. This free online barcode generator draws CODE128, EAN-13, UPC-A and CODE39 barcodes in your browser, works out the check digit for you, and lets you download the result as a print-ready PNG or SVG.
Related tools
How to use the Barcode Generator
- Type the value the barcode should carry — a product number, a serial, or any short text for CODE128.
- Pick the format: EAN-13 or UPC-A for retail products, CODE128 for everything else, CODE39 for older systems.
- Adjust the bar height and width until the preview looks right, and keep the printed value on for human-readable labels.
- Download the PNG for documents and printing, or the SVG if you need a perfectly sharp image at any size.
Retail barcodes feel mysterious because the numbers are assigned, not invented: a company registers a prefix with GS1, adds its own item numbers, and the final digit is a check digit calculated from all the others, which is how tills catch mis-scans. This tool handles that last digit for you — enter the first 12 digits of an EAN-13 or the first 11 of a UPC-A and the correct check digit is added; enter the full number and it is verified instead.
For everything that is not a shop product — stock labels, asset tags, membership cards, event tickets, file references — CODE128 is the practical choice because it carries letters and numbers of any length. Whatever the format, two habits keep barcodes scannable: leave clear white space around them (the "quiet zone" scanners look for first) and never resize them in only one direction, which squeezes the bars together. If you also need a code phones can open as a link, the QR Code Generator is the companion tool — and if you are labelling products you sell, the Invoice Generator pairs well for the paperwork side.
Barcodes for products, stock and labels
A barcode generator turns a number into a scannable barcode: CODE128 for general labelling, EAN-13 for retail products, UPC-A for North American retail, and CODE39 for simple inventory tags. The check digit is worked out for you, so a mistyped number is caught before the label is printed.
Printed barcodes work best at a decent size with quiet space around them — the PNG and SVG downloads here keep the bars sharp at any size. No sign-up, no upload: the barcode is drawn in your browser and downloaded straight to your device.
PNG or SVG — which download?
The barcode draws itself live as you type, and both downloads carry the same bars — the difference is what happens when the image changes size. PNG is a fixed grid of pixels: fine at the size you download it, softer if it is stretched much larger. For a quick label, a document or a screen display, it is all you need.
SVG is a set of instructions rather than pixels, so it stays perfectly sharp at any size — a tiny asset tag or a poster-sized label print equally well from the same file. If the barcode is going to a professional printer or onto packaging, SVG is the safer choice; the printer can scale it without touching the bars.
Before you print a hundred labels
Barcodes fail quietly: a label that looks fine can refuse to scan, and you only find out at the till or the stockroom door. So print one label first and test it with your phone camera before committing to a whole batch. If the phone reads it instantly, a shop scanner will too; if it hesitates, the barcode is too small, too faint or too squeezed.
Two habits prevent most failures. Keep the bars dark on a light background — pale grey bars on white look elegant and scan terribly — and never photocopy a barcode smaller, because copying softens the edges the scanner reads. The check digit catches a mistyped number before printing; the test print catches everything else.
Which barcode format does your product need?
Retail products need a retail code. An EAN-13 barcode generator free online is the right tool for products sold outside North America, while a UPC barcode generator free of charge suits the North American market — both encode a fixed product number (a GTIN) that shops scan at the till, and the check digit is worked out for you either way. The number itself comes from GS1 registration: the generator draws the barcode, it does not assign product numbers.
For everything that is not a shop product, CODE128 is the practical choice: a CODE128 barcode generator online free of signups will encode any text, numbers or symbols, so warehouses use it for serial numbers, shipping labels and asset tags. And if you want to create a barcode for a product free before committing to a print run, start here — type the number, check the live preview, print one label and test it with your phone camera before ordering a hundred.
Frequently asked questions
What is the difference between CODE128, EAN-13, UPC and CODE39?
EAN-13 is the retail standard outside North America and UPC-A is its North American cousin — both encode a fixed product number (a GTIN) that shops scan at the till. CODE128 is the flexible one: it encodes any text, numbers and symbols, so warehouses and shipping labels use it for serial numbers and references. CODE39 is the older, simpler code still found on some industrial and library labels.
Do I have to work out the EAN-13 or UPC check digit myself?
No. Type the first 12 digits of an EAN-13 (or the first 11 of a UPC) and the tool calculates the final check digit for you. If you type the full number including its check digit, the tool verifies it and warns you if it does not add up.
Will a barcode made here actually scan?
Yes, if it is printed or displayed cleanly. Keep the quiet white space on both sides, do not stretch it out of proportion, print at a reasonable size (at least about 30 mm wide for retail codes) and test it with your phone camera before printing a whole batch.
Is my data uploaded anywhere?
No. The barcode is drawn in your browser from the text you type; nothing is sent to a server, and you download the PNG or SVG straight from this page.
Which barcode format should I use for a product I sell?
EAN-13 for retail outside North America, UPC-A for North American retail — both encode the product number shops scan at the till. For stock labels, asset tags or anything that is not a shop product, CODE128 is the flexible choice because it carries any text or numbers.
Can I create a barcode for a product for free?
Yes — type the product number, pick EAN-13 or UPC-A, and download the barcode as a print-ready PNG or SVG. The check digit is worked out for you. Note the number itself comes from GS1 registration; the generator draws the barcode, it does not assign product numbers.
Can I make a CODE128 barcode with letters in it?
Yes — CODE128 encodes letters, numbers and symbols of any length, which is why warehouses and shipping labels use it for serial numbers and references. EAN-13 and UPC-A are digits only.