A shop down the street wants to stock your candles, and the buyer asks one thing first: does it have a barcode? Make one here in a few seconds. The check digit is worked out for you, and the file is ready for your label printer.
How to make a barcode
- Pick the type of barcode. Not sure? Read Which barcode do you need below.
- Type your number or text. For EAN-13, type the first 12 digits and the last one is added for you. Paste all 13 and the tool checks the last one.
- Look at the line under the barcode. It shows the print size, and for shop barcodes how close you are to the standard size.
- Press Download PNG for a picture, or Download SVG for print. On a phone, Save or share puts it in your photos or sends it to an app. Copy picture lets you paste it into a sheet or a product page.
Open Size, text and colors to set the width and bar height in mm or inches, hide the numbers, add a product name or price above the bars, or change the colors. Need a barcode for every product? Open Make many at once, paste one value per line, and download them all as a ZIP or print a sheet.
Which barcode do you need?
- EAN-13 is on products in shops around the world. It holds 13 digits.
- UPC-A is the shop barcode in the US and Canada. It holds 12 digits.
- EAN-8 is a short shop barcode for small packs, like lip balm.
- Code 128 holds letters, numbers and symbols. Use it for your own stock, shelf labels, SKUs and shipping.
- ITF-14 goes on the outside of a box that holds many of one product.
- Code 39 and Codabar are older. Some name badges, parts lists, libraries and labs still use them.
Why a barcode fails at the till
A barcode can look fine and still not scan. These are the usual reasons:
- The last digit is wrong. In EAN, UPC and ITF-14, the last digit is math done on the others. One typo and the scanner refuses the whole code. The tool works it out, and tells you when a pasted number has the wrong one.
- It is too small. At GS1's standard size, an EAN-13 is about 37.3 mm wide and 25.9 mm tall. Shops read 80% to 200% of that. "Fit to page" in a print box can shrink it below 80%, so print at 100%.
- The blank space at the sides is cut off. Scanners need it to find where the bars start. The width here counts it, so do not crop the picture.
- The colors are wrong. Scanners want dark bars on a light background. Many use red light, so red bars look blank to them. The tool warns you about both.
- The number belongs to someone else. A made-up EAN or UPC may already be on another company's product. To sell in shops, get your numbers from GS1.
What this tool does and does not do
The bars are drawn in your browser with JsBarcode, a free open source library. The check digit uses GS1's method: weight the digits 3, 1, 3, 1 from the right, add them up, and pick the digit that makes the total end in 0. The SVG is drawn at the real size in mm, so it prints at the size you set. The PNG is made at about 300 dots per inch, and the file says so, so Word and label apps place it at the right size.
It does not give out numbers. It does not make GS1-128 shipping labels with codes like (01) and (17), and it does not make QR codes. It cannot scan for you either: print one label and scan it before you print a thousand. Code 128 takes plain letters, numbers and symbols, so accents and emoji are flagged.
On social media
Selling on Instagram or Facebook? In Meta's Commerce Manager, each product in your catalog has a GTIN field. The GTIN is the number under your EAN or UPC bars. Pinterest catalogs and Google Merchant Center ask for the same number. Type the digits there, not a picture of the barcode.
Running a coupon in an Instagram Story? A story is 1080 x 1920 pixels. Make the coupon code a Code 128 barcode, keep it wide, and leave white space around it. Camera scanners at the till can read a phone screen, but many older laser scanners cannot. Show the code as text too, so the cashier can type it.
FAQ
How do I get a barcode number for my product?
You get it from GS1, the group that gives out the numbers on shop barcodes. Join GS1 in your country, get your numbers, and type each one here to draw its barcode. For your own stock or shelves, any Code 128 text you choose works.
What is the difference between EAN-13 and UPC-A?
UPC-A has 12 digits and is used mostly in the US and Canada, and EAN-13 has 13 and is used almost everywhere else. A UPC-A number is the same as an EAN-13 with a 0 in front, and shops around the world can scan both.
What is a check digit?
It is the last digit of an EAN, UPC or ITF-14 number, worked out from the others so a scanner can catch a mistake. Type the number without it and this tool adds the right one.
What size should a barcode be?
At the standard size, an EAN-13 or UPC-A is about 37.3 mm wide and 25.9 mm tall, with the blank sides. Shops read 80% to 200% of that. The tool starts at the standard width and bar height, and shows the percent as you change it. Its size line also counts a thin white edge above and below.
Can I use these barcodes for free?
Yes. The tool is free, needs no account, and the files are yours to use. If you sell in shops, the number itself must still come from GS1.
Does the barcode generator save what I type?
No. It runs in your browser and sends nothing to Postfjord. What you type stays on your device and is gone when you close the page.