Barcode Generator
Make EAN-13, UPC, CODE128 and CODE39 barcodes with a live preview and download as PNG. Follows official specs. Free and private.
In short: Make EAN-13, UPC, CODE128 and CODE39 barcodes — live preview, download as PNG. Free to use in your browser — no sign-up.
What is Barcode Generator?
Barcode Generator creates EAN-13, UPC, CODE128 and CODE39 barcodes from the text you enter, with a live preview, and saves them as PNG files.
How to use this tool
Watch: How to use Barcode Generator (video)
- Choose the Barcode format that fits your use.
- Type or paste the value in Text to encode.
- Check the live preview and fix any format errors shown.
- Download the barcode as a PNG.
- Print it at least 3 to 4 cm wide and test it with a scanner or phone.
About this tool
Barcode Generator turns a short piece of text or a number into a barcode you can print and scan. It makes four kinds: EAN-13, UPC-A, CODE128 and CODE39. Type a value, pick a format, and the preview updates as you type. When the barcode looks right, download it as a PNG and use it on a label, a box or a shelf tag. It is free, needs no sign-up, and everything runs in your browser, so your product codes never leave your device.
Pick the format first, because each one has different rules. EAN-13 holds 13 digits and is the retail standard for products sold in most of the world. UPC-A holds 12 digits and is the matching standard for the United States and Canada — a UPC-A number is an EAN-13 number with a leading zero, and most scanners read both. CODE128 takes letters, digits and simple symbols, so it suits stock codes, tracking numbers and shipping labels. CODE39 takes capital letters, digits, a space and a few symbols, and it suits simple asset tags and inventory labels.
Use it whenever a short code has to be read quickly and without typing errors. A small shop can label jars, boxes and price tags. A stockroom can tag shelves, bins and equipment so a scan finds the right item. At home it works for a book shelf, a tool box or a pantry. For anything sold through other shops or marketplaces, remember that the number itself matters as much as the picture: retail EAN-13 and UPC-A numbers come from GS1, the body that issues them, and this tool draws the barcode but does not register a number for you.
Know the limits before you start. This tool makes one barcode at a time — there is no batch mode, so a long list of codes means repeating the steps for each one. It offers four formats only, so it cannot make QR codes, EAN-8, GS1-128 or ITF-14. The download is a PNG only, with no SVG or PDF option and no size or colour settings, and the PNG is made at three times the preview size. A barcode also stores very little: it holds a short code, not a price, a description or a web link. For a link or contact details, use the QR Code Generator instead.
A barcode that looks fine can still fail at the till, so print and test it well. Print at 100 percent size, never “fit to page”, and keep the barcode at least 3 to 4 cm wide — the standard UPC size is about 3.7 cm wide, and it can shrink to about 80 percent of that and still scan. Use solid black bars on a white background, print at 300 dpi or higher on a laser printer if you can, and keep the quiet zone — the blank space on both sides — clear of text, borders and label edges. Do not stretch the PNG out of shape, and put the label on a flat surface, not a curve. Then scan the printed label with a phone or a scanner before you print a whole batch — the QR and Barcode Scanner tool on this site reads it back for you. If you need the barcode inside a document, turn the PNG into a PDF with the Image to PDF tool.
Example — labelling jam jars in a small shop:
A shop owner sells homemade jam and wants every jar to scan at the till and in stock counts. She picks CODE39 and types JAM-250G as the code for a 250 gram jar of jam, then downloads the PNG and prints it about 4 cm wide on a plain white label. She repeats the steps for each flavour — JAM-250S for strawberry, JAM-250A for apricot — one code at a time, and sticks a label on every jar.
Before printing the full batch she scans one printed label with her phone. It reads back as JAM-250G, so she prints the rest the same way. The till now reads each jar in a second instead of typing a price by hand, and a stock count is a quick scan of each shelf instead of reading small handwritten tags.
Frequently asked questions
- How do I make a barcode?
- Pick a format from the “Barcode format” list, type your value in “Text to encode”, check the live preview, then click “Download PNG”. The button stays greyed out until the value is valid for the format you picked.
- Which barcode format should I choose?
- EAN-13 is the standard for retail products worldwide; UPC-A is its US equivalent. CODE128 is a good fit for internal labels with mixed text and numbers, and CODE39 is a simple older format for capital letters and digits.
- Is the Barcode Generator free?
- Yes. It is free to use, with no sign-up, no account and no watermark. The barcode is made in your browser, so nothing is uploaded.
- Will these barcodes actually scan?
- Yes. They follow the official specifications of each format, including the check digit. Print them large enough (at least 3 to 4 cm wide) on a light background with a quiet margin.
- Is my product data kept private?
- Completely. The barcode is generated locally on your device and nothing is uploaded or stored.
- Can I use these for products I sell in shops?
- Shops usually require officially issued product numbers. This tool draws the barcode but does not register numbers.
- Can I make many barcodes at once?
- No. The tool makes one barcode at a time, so repeat the steps for each code. For a long list, keep your codes in a sheet or a list and work through them one by one.
- Why does my EAN-13 show an error?
- EAN-13 needs 12 or 13 digits (the last digit is the check digit). Check your number and the tool’s message.