Barcode Generator

Make a barcode online for free: Code 128, EAN-13, UPC-A, EAN-8, Code 39, ITF-14 and Codabar. The check digit is worked out for you, and you download a sharp PNG or SVG ready to print.

Bars
Background
Text
Barcode
.png

A Free Barcode Generator for Products, Labels and Stock

Pick a barcode type, type the number or text, and the barcode is drawn as you type. Code 128 is the default because it holds anything you can type on a keyboard: letters, digits and symbols, for shipping labels, asset tags, library cards or your own stock numbers. For a long run of digits it quietly switches to its compact number mode, so the barcode stays as short as the standard allows. EAN-13 is the product barcode on almost everything sold in shops outside North America, UPC-A is its twin on products in the US and Canada, and EAN-8 is the short version for small packaging. Code 39 is the older letters-and-digits code still asked for by many warehouse, military and car industry systems. ITF-14 marks outer shipping cartons, plain ITF (Interleaved 2 of 5) packs any even number of digits, and Codabar is still used by libraries, blood banks and parcel services. Hold a phone scanner app up to the preview to test the code before you print it.

Check Digits Worked Out for You

EAN-13, UPC-A, EAN-8 and ITF-14 end in a check digit that lets the scanner catch a misread. Type the number without it (12 digits for EAN-13, 11 for UPC-A, 7 for EAN-8, 13 for ITF-14) and the right digit is added, with a line under the field saying which one. Type the full number and it is checked instead: a wrong last digit is named, together with the digit it should be, before anything is drawn. Spaces and hyphens you paste in are ignored. The number under an EAN-13 or UPC-A barcode is laid out the standard way, with the first digit outside the bars and the tall guard bars running down between the groups. For Code 39, switch on Mod 43 check character if the system reading it asks for one. Every type explains in plain words what it cannot take, like an odd number of digits for ITF or an accented letter for Code 128.

Size, Colours and Text

Bar width sets how many pixels wide the thinnest bar is, from 1 to 10, and every bar is a whole number of those pixels, so the edges stay perfectly sharp at any setting. Bar height sets how tall the bars are. Text turns the human readable numbers under the bars on or off. Tap the Bars and Background swatches to colour the barcode. Scanners need dark bars on a light background, so a warning appears when the colours are too close, when the bars are lighter than the background, or when the bars are red or orange: the laser scanners at a checkout use red light, and red bars look white to them. ITF-14 is drawn with bearer bars, the thick frame that stops a scanner reading half a code on a cardboard box; switch them off under the number if you do not need them. If you need a code that holds a whole link or a Wi-Fi password, use the /qr-code-generator/ instead.

Download as PNG or SVG

PNG saves the barcode exactly as the preview shows it, in only two colours: even the edges of the numbers are snapped to the bar or background colour, so nothing grey sits between them. That keeps it crisp when a label printer or a thermal printer turns it into dots. SVG saves the barcode as vector shapes that scale to any size without blurring, the right format for packaging artwork, a print shop, or a designer placing the code in a layout. Copy puts the PNG on the clipboard for pasting into a document or a label program, and on a phone Share sends it straight to another app.

Private by Design

The barcode is built in your browser, not on a server. Your product numbers, internal stock codes or asset tags are never sent anywhere, and there is no account to create. Close the tab and nothing is left behind unless you downloaded it.

Frequently Asked Questions About the Barcode Generator

Can I use these EAN or UPC barcodes to sell products in shops?

The barcode itself will scan anywhere, but the number inside it has to be yours. Retailers and marketplaces expect EAN and UPC numbers issued by GS1, the organisation that hands out company prefixes, so they point back to your company. This generator draws a correct barcode for any number you give it; it does not issue product numbers. For your own shelves, stock or events, any number works.

Which barcode type should I choose?

For a product in a shop, use the EAN-13 or UPC-A number your supplier or GS1 gave you. For a shipping carton, ITF-14. For anything of your own, like stock numbers, asset tags or tickets, Code 128: it takes letters and digits and is the most compact. Choose Code 39 or Codabar only when a system asks for them by name.

Why does it say my check digit is wrong?

The last digit of an EAN, UPC or ITF-14 number is calculated from the others. If the one you typed does not match, the number has a typo somewhere, or the last digit is missing. The message names the digit that belongs there. Leave the last digit off and it is added for you.

How big should I print a barcode?

The standard size of an EAN-13 barcode is about 37 by 26 millimetres, and it can be printed down to about 80 percent of that. Smaller than that, cheap scanners start to fail. Download the SVG for print and scale it in your layout program, or use a bar width of 3 pixels or more for the PNG.

Is anything I type uploaded?

No. The barcode is drawn by this page in your browser, and the numbers and text you type never leave your device.