“We noticed you may be using an ad blocker. Please consider turning it off for this site.”“We noticed you may be using an ad blocker. Please consider turning it off for this site.”
Make a barcode image for EAN-13, UPC-A, Code 128, Code 39 and more. Type your number, press Make barcode and download a PNG or SVG. Free, with no account needed.
What to know before you print
This tool draws the barcode for the number you type. It does not register the number or check it with anyone.
Products sold in shops need numbers issued by GS1, the organization that manages them.
Print a test copy and scan it with the scanner or app you will really use before you print a large batch. Paper, ink and print size all change how well a code reads.
The picture is black on white, which scanners read best. Keep the empty margin around the bars.
The number you type is used to draw the picture and is not stored by this tool.
What each barcode type is for
EAN-13
The code on products sold in shops around the world. Type 12 digits and the check digit is added, or type all 13 and the last one is checked. Numbers for products sold in shops are issued by GS1.
UPC-A
The code on products sold in shops in the United States and Canada. Type 11 digits and the check digit is added, or type all 12 and the last one is checked. Numbers for products sold in shops are issued by GS1.
EAN-8
A short code for small packages. Type 7 digits and the check digit is added, or type all 8 and the last one is checked. Numbers for products sold in shops are issued by GS1.
UPC-E
A compact form of UPC-A for small packages. Type 6 digits (number system 0 is used), 7 digits with the number system first, or 8 digits with the check digit last. Only some numbers can be shortened this way. Numbers for products sold in shops are issued by GS1.
Code 128
Takes letters, digits and the symbols of a US keyboard, up to 80 characters. A good choice for inventory labels, shipping and anything that is not a shop product number.
Code 39
Takes capital letters, digits, a space and the symbols hyphen, period, dollar sign, slash, plus and percent, up to 40 characters. Lower case letters are changed to capitals. Common in industry and government. A scanner in Full ASCII mode reads the dollar sign, slash, plus and percent sign differently, so avoid those four if you can.
Code 93
A denser relative of Code 39. Takes letters, digits, a space, hyphen and period, up to 40 characters. Lower case letters are changed to capitals. Its two check characters are built in.
Interleaved 2 of 5
Digits only, drawn in pairs, so the count must be even: an odd count gets a zero in front. Used on cartons and in logistics. Thirteen digits plus the check digit make an ITF-14 number.
Codabar
Digits and the symbols hyphen, dollar sign, colon, slash, period and plus, from 2 to 40 characters. Put a start and a stop letter from A to D first and last, or leave them out and A and A are used. Seen in libraries, blood banks and on some shipping labels.
MSI
Digits only, up to 30. Used for shelf labels and inventory. The tick box adds a modulo 10 check digit.
Pharmacode
One whole number from 3 to 131,070. Used on pharmaceutical packaging to control print runs. It carries a number, not text.
What Is a Free Barcode Generator?
Quick answer: A barcode generator draws the striped picture for a number or text you type. This free, online barcode generator needs no account. Pick the Barcode type, type the Number or text, press Make barcode, then download the PNG or SVG: make your barcode in the tool above.
It works as a free barcode maker for 11 types in three groups, from shop products to pharmaceutical packaging. It makes one barcode at a time and doesn't register numbers.
How to Make a Barcode Online
Barcode type. It opens on Code 128. For a shop product, pick EAN-13 or UPC-A first.
Number or text. Spaces and hyphens in digits are ignored, so a pasted 590 1234-123457 works.
Size and options. Bar width (pixels), Bar height (pixels) and Empty margin (bar widths) start at 2, 140 and 10. The margin never drops below the quiet zone, the blank strip a scanner needs. Show the number under the bars starts ticked.
Make barcode. The page shows Your barcode with the Number in the bars, then Download PNG and Download SVG.
Example numbers, several from public worked examples and the rest made up.
Which Barcode Type to Use: EAN, UPC, Code 128 or Code 39?
Pick the type by where it gets scanned, unless a buyer or system names one.
Situation
Pick
Why
United States or Canadian shops
UPC-A
12 digit shop code
Shops elsewhere
EAN-13
Used worldwide
Small retail packaging
EAN-8 or UPC-E
UPC-E needs a shortenable number
Inventory labels, SKUs, shipping labels
Code 128
Letters, digits, symbols
Internal labels, or a system that asks
Code 39 or Code 93
Capitals, digits, a few symbols
Carton labels and logistics
Interleaved 2 of 5
Digit pairs; 13 digits plus a check digit make ITF-14, drawn without bearer bars
Libraries, shelf labels, drug packs
Codabar, MSI or Pharmacode
Only when your system asks
If no one named a type, start with Code 128: it takes lower case letters and symbols, where Code 39 turns everything into capitals.
UPC and EAN Barcodes: Do You Need Numbers From GS1?
A UPC barcode generator, this one included, draws the picture for a UPC number or EAN number you already have; it doesn't issue one. For your own stock, any number the type allows works. Products sold through shops usually carry numbers issued through GS1 member organizations such as GS1 US, which says its barcodes identify the brand owner, something retailers look for.
We check format and check digit, nothing more. For shop products, treat any number that didn't come from GS1, our samples included, as a practice number, and ask the retailer or marketplace what it accepts.
An ISBN-13 is already an EAN-13 number, since it starts with 978 or 979. Selling online? A number GS1 issued goes into product markup as a GTIN (Global Trade Item Number): GTIN-12 for a UPC-A, GTIN-13 for an EAN-13. Our ecommerce SEO checklist has an example.
How the Check Digit Works
The last digit of an EAN-13, UPC-A or EAN-8 number is a check digit that lets a scanner catch a typo. GS1 modulo 10 works it out. Leave the check digit off, weight the digits 3, 1, 3, 1 from the right and add them up. The check digit is what reaches the next multiple of 10, or 0 if the total already is one.
Take 590123412345. The weighted digits from the right are 15, 4, 9, 2, 3, 4, 9, 2, 3, 0, 27 and 5. They add up to 83, the next multiple of 10 is 90, so the check digit is 7 and the tool draws 5901234123457.
A refused full number may hide an earlier typo, so check every digit before accepting the suggestion. Code 39, Interleaved 2 of 5 and MSI have an optional check digit behind the Add a check digit box.
Download Your Barcode as PNG or SVG
Every run makes a PNG and an SVG. The PNG is a fixed size picture on an opaque white background, not transparent. The SVG scales without blur, so it's the file for a print shop that accepts SVG; print one test copy first.
An EAN-13 PNG at Bar width 2 and Bar height 140 is 232 by 161 pixels; at Bar width 10 and the same height it is 1,160 by 245.
For a JPG or a vector PDF, try the PNG to JPG Converter or the SVG to PDF Converter, then scan the JPG once before printing. The SVG digits are live monospace text, so they may look different elsewhere; the bars never change.
Print a Test Copy and Scan It Before You Print a Batch
The PNG carries a 96 dpi tag, which makes one pixel about 0.26 mm at its own size. Bar width 2 prints about 0.53 mm and Bar width 3 about 0.79 mm.
GS1 Canada's EAN/UPC symbol size table, a 2018 document, read in November 2026, puts shop barcodes at 80 to 200 percent of a nominal size: 0.26 to 0.66 mm per bar width. Bars must be at least 22.86 mm tall when they are 0.33 mm wide. Divide 22.86 by 0.33 and you get 69.3, so Bar height should be about 70 times the Bar width. That's our arithmetic, not GS1's wording. At its own size Bar width 2 fits the range and 3 doesn't, which is why the defaults are 2 and 140.
A barcode shown smaller than it was drawn, PNG or SVG, can stop scanning, so make a new one with a larger Bar width instead. In print, keep black on white and the empty margin, and never stretch a barcode: GS1 US guidance on printing and placing a barcode says to create it again at the size you need.
Then print a test copy at actual size on the label stock you'll use and scan it with the scanner or app you will really use. In our tests, open source barcode readers read back sample pictures of nine of the 11 types, but we used no hand scanner or phone camera.
One at a time. No batch, CSV or label sheets. Past about 30 barcodes a minute from one address, the page asks you to wait.
Symbols left out. No EAN-2 or EAN-5 add-ons, GS1-128, GS1 DataBar, postal codes or 2D codes.
Black on white. No color setting, no rotation, no print size in millimeters or inches, and pictures top out at 8,000 pixels wide. It can't read barcodes.
Evidence gaps. Only our own decoder read MSI and Pharmacode back, and one open source reader read UPC-E, so test those three yourself.
Barcode or QR Code?
A 1D barcode, also called a linear barcode, holds a number or short text for a barcode scanner. A QR code, a 2D barcode, holds a link or a contact card for a phone to read. For that kind, use the QR Code Generator.
What Happens to the Number You Type
The number you type is used to draw the picture and isn't stored by this tool: no file is kept for you, and no cache entry or session holds it. Both downloads live only in the answer page, so save them before you close it.
The value travels to our server over HTTPS to be drawn. The site's visit log keeps the barcode type, bar width, your IP address, browser details, the page address, the time and, if you're signed in, your account, but not the number. Two temporary files exist for a fraction of a second while a short SEO Site Checker note is written into the PNG and SVG.
Frequently Asked Questions (FAQs) is a list of common questions and answers provided to quickly address common concerns or inquiries.
How do I make a barcode for free?
To create a barcode, open the tool above, choose the Barcode type, type the Number or text and press Make barcode, then download the PNG or SVG. It needs no account. For a shop product, leave off the last digit and the tool adds it.
Do I need to buy numbers from GS1 to sell a product in shops?
It depends on where you sell. Shop products usually carry numbers issued through GS1 member organizations, while for your own stock or assets you register nothing. GS1 US says its barcodes identify the brand owner, which retailers look for, so ask your retailer what it accepts.
What is the difference between UPC-A and EAN-13?
UPC-A has 12 digits and appears on products in United States and Canadian shops; EAN-13 has 13 and is used worldwide. UPC stands for Universal Product Code and EAN for International Article Number. A UPC-A number with a zero in front is an EAN-13 number.
Why does a barcode generator add an extra digit to my number?
Because the last digit of an EAN-13, UPC-A, EAN-8 or UPC-E number is a check digit, worked out from the others so a scanner can catch a typo. This tool adds it when you leave the last digit off and refuses a wrong one, naming the right digit.
What do the numbers in a barcode mean?
The first three digits of an EAN-13 number are the GS1 prefix, which usually names the GS1 member organization the maker joined and does not necessarily say where the product was made. Then come the company code, the product code and the check digit.
How many characters can each barcode type hold?
Limits of this tool, not of the symbologies: EAN-13 takes 12 or 13 digits, UPC-A 11 or 12, EAN-8 7 or 8, UPC-E 6 to 8, Code 128 up to 80 characters, Code 39 and Code 93 up to 40, Interleaved 2 of 5 up to 40 digits, Codabar 2 to 40 characters, MSI up to 30 digits and Pharmacode a number from 3 to 131,070.
Can a barcode be printed in color?
Yes, with dark bars on a light background, but not with this tool, which draws black bars on white and has no color setting. GS1 US advises black on white, and for other colors dark bars such as dark blue or dark green, never red or reddish.
How do I print a barcode so it scans?
Print a test copy at real size on the real label stock, black on white with the empty margin kept, and scan it with the scanner or app you will really use. Never stretch the picture; make a new barcode instead. For a shop barcode, set Bar height to about 70 times the Bar width.
We use cookies to personalize content and ads, to provide social media features and to analyze our traffic. You consent to our cookies if you continue to use our website.
Install SEO Site CheckerFree SEO tools - always in your pocket.