Browser-Based · Instant · Free

Barcode Generator.
Instant & Free.

Make Code 128, EAN-13, UPC-A and five other barcode types. Check digits are worked out for you. Download as PNG or SVG — nothing is uploaded.

Barcode Generator

Letters, digits, spaces and common symbols (English characters only).

100% Private
The barcode is drawn in your browser. Your numbers are not sent to any server.
Check Digits Done
EAN, UPC and ITF-14 check digits are calculated or verified as you type.
Print-Ready SVG
SVG stays sharp at any size. PNG suits documents and screens.

How to Make a Barcode

1
Choose the type

Code 128 for your own labels and stock numbers. EAN-13 or UPC-A for products sold in shops.

2
Enter the number or text

The barcode updates as you type. For EAN and UPC you can leave out the last digit — it is calculated for you.

3
Download

Save as SVG for printing or PNG for documents, or copy the image straight into another program.

Which barcode type to use

Every scanner reads the common types, but each type only accepts certain characters and lengths. Pick the type your shop, warehouse or software expects.

The eight types on this page

TypeWhat it holdsTypical use
Code 128Letters, digits and symbolsShipping labels, stock and asset numbers, anything inside your own business
EAN-1312 digits + check digitProducts in shops worldwide; books use EAN-13 numbers starting with 978 or 979 (the ISBN)
UPC-A11 digits + check digitProducts in shops in the USA and Canada
EAN-87 digits + check digitSmall packets where an EAN-13 does not fit
UPC-E6 digits (a shortened UPC-A)Small packets in the USA and Canada
ITF-1413 digits + check digitOuter cartons and cases that hold several retail units
Code 39A–Z, 0–9, space and - . $ / + %Older industrial and government systems, ID badges
Codabar0–9 and - $ : / . +Libraries, blood banks, older courier labels

Check digits

  • EAN, UPC and ITF-14 end with a check digit calculated from the other digits. A scanner recalculates it and rejects the code if it does not match, which catches misprints and typing errors.
  • Leave the last digit out and the generator adds it. Type the full number and it checks the last digit and tells you the right one if it is wrong.
  • Code 128 also carries a check character, but it is hidden inside the bars and never printed, so there is nothing to type.

Selling products in shops

  • Drawing the barcode is the easy part. The number in an EAN or UPC code identifies one product worldwide, and those numbers are issued by GS1, the organisation that runs the system, through a company prefix you license from your local GS1 office.
  • A made-up EAN or UPC number may belong to someone else's product. Large retailers and online marketplaces usually check product numbers against the GS1 database and reject numbers that do not match the seller.
  • For use inside one shop or company — shelf labels, your own stock, loyalty cards — Code 128 with your own numbering is the simple choice. EAN-13 numbers that start with 2 are set aside for this kind of internal use; GS1 calls them restricted circulation numbers.

Printing so it scans

  • Keep the white margin on both sides. Scanners need that quiet zone to find where the code starts and ends, so do not crop it or place text right next to the bars.
  • Black bars on white scan best. Dark blue or dark green on white also work. Red, orange and yellow bars are invisible to most laser scanners, and light bars on a dark background fail on many of them.
  • Resize the whole image, never just its width. Stretching one direction changes the ratio between thick and thin bars. An EAN-13 is normally about 37 × 26 mm and can be printed from 80% to 200% of that size.
  • Use SVG for print — it stays sharp at any size. If you use PNG, print it at 100% scale rather than letting the printer fit it to the page.
  • Test before you print in bulk with a scanner or a barcode app on your phone, at the real printed size.

Need a code that opens a website instead? Use the QR code generator.

Frequently Asked Questions

Is this barcode generator free?

Yes. There is no sign-up, watermark or limit on how many barcodes you make, and you can use them commercially. The barcodes are drawn in your browser, so the numbers you enter are not sent to our server.

Can I use these barcodes on products I sell?

The image is a standard barcode that any scanner reads. For products sold through shops or marketplaces, the EAN or UPC number itself should come from GS1, because retailers check that the number is registered to you. For internal labels, any number works.

Why does it say my number is invalid?

Each type accepts only certain characters and lengths: EAN-13 takes 12 or 13 digits, UPC-A 11 or 12, Code 39 only capital letters, digits and a few symbols. If you typed the full number, the last digit may not be the correct check digit — the message shows which digit is expected.

Should I download PNG or SVG?

SVG is a vector image: it prints sharply at any size and is what print shops and label software prefer. PNG is a normal picture for Word documents, spreadsheets and websites; choose the Large or Extra large size if you will print it.