Barcode generator
Make barcodes: Code 128, EAN, UPC, ISBN, Code 39 and more. Nothing is uploaded.
How to use it
- Choose the kind of barcode and type the value. For EAN, UPC, ISBN and ITF-14 the check digit is added for you, or checked if you typed it.
- Set the size and the colors. Dark bars on a light background, with the empty margins kept, scan best.
- Download the PNG for screens and documents, or the SVG for print. Test the barcode with a scanner or a phone app before you print many.
Questions
Which kind of barcode should I choose?
For your own labels (stock, assets, shipping, tickets) use Code 128: it holds any text and every scanner reads it. EAN-13 (worldwide) and UPC-A (US and Canada) are for products sold in shops, and EAN-8 and UPC-E are their shorter forms for small packages. ISBN is the EAN-13 printed on books; it begins with 978 or 979. Code 39 and Code 93 are older codes for capital letters and digits. ITF-14 is for cartons and cases, and Interleaved 2 of 5 is the same code without the frame. Codabar is found on older library, laboratory and shipping labels.
Can I put these barcodes on products I sell in shops or online?
Only with a number that is yours. Shops and most online marketplaces expect a number that GS1, or its office in your country, has assigned to your company. This tool draws a barcode for any number you type; it cannot give you one, and a number you make up may belong to someone else’s product. For labels used inside your own business, use Code 128, or an EAN-13 that begins with 2, which is set aside for use inside a single store or company. ISBNs come from your national ISBN agency.
What is the check digit?
The last digit of an EAN, UPC, ISBN or ITF-14 number is calculated from the others, so a scanner can tell when it has misread a digit. Type the number without it and the tool adds it. Type the whole number and the tool checks it: if the digit is wrong it says what it should be, instead of drawing a barcode that scanners would reject.
Is anything uploaded?
No. The barcode is drawn in your browser by code on this page. What you type is not sent anywhere or stored. A barcode holds the value itself: there is no link through our servers and no counter.
PNG or SVG?
PNG is a picture for screens, documents and spreadsheets. The narrowest bar is a whole number of pixels, which keeps the edges sharp, so do not resize the PNG afterwards: scaling smooths the edges and can make the code unreadable. SVG is made of lines and prints sharply at any size, so use it for labels, packaging and anything you will scale. The numbers under the bars are part of the picture, drawn in a small built-in pixel font, so they look the same everywhere.
Why will my barcode not scan?
Check the usual causes. The bars should be dark on a light background; many scanners cannot read light bars on dark. Keep the empty margins on both sides. Print the narrowest bar at least about 0.25 mm wide (2 pixels at 300 dpi is only 0.17 mm). Do not stretch the picture. Make the bars tall enough for a scanner to cross the whole code in one sweep. And check that the scanner is set to read your type: many ignore very short Interleaved 2 of 5 and Codabar codes.
How big should I print it?
For EAN-13, UPC-A and EAN-8 the standard’s normal size has a narrowest bar of 0.33 mm, which makes an EAN-13 or a UPC-A about 37 mm wide with its margins, and the size may be scaled between 80% and 200%. At 300 dpi, 4 pixels is 0.34 mm, so the default size suits printing at 300 dpi. If the barcode goes on retail packaging, ask the shop or your GS1 office for their rules.
What is an add-on?
A small second barcode to the right of an EAN, UPC or ISBN code. Two digits carry an issue number (magazines and newspapers) and five digits carry a price or edition code (books). Scanners that support add-ons read both together. Leave it empty for ordinary products.
Can I make GS1-128, Data Matrix or PDF417 codes?
Not yet. This tool makes the eleven kinds in the list. Code 128 here is plain Code 128, without the application identifiers of GS1-128. For QR codes, use the QR code generator.
Is my text sent to a server?
No. Everything happens in your browser. Your text is not uploaded or stored.
Is it free?
Yes, you can use it for free. A subscription removes limits and unlocks premium tools.