Barcode Generator

Make a barcode for shipping labels, inventory, library cards or product packaging. Choose the format, type the value, and download a crisp PNG or a vector SVG for printing.

Runs entirely in your browser. Nothing you enter is uploaded or stored.

Generated barcode

How to make a barcode

  1. Choose a format (see below for which one you need).
  2. Type the value. For EAN-13 and UPC-A you can leave out the last digit — the check digit is calculated for you. If you enter it, it's verified.
  3. Adjust bar width and height if needed, then download a PNG for documents and label software, or an SVG for print design, where it stays perfectly sharp at any size.
  4. Test-scan the printed barcode with a phone or scanner before printing in bulk.

Which barcode format should I use?

FormatEncodesUsed for
Code 128All printable ASCII: letters, digits, punctuation; any lengthShipping labels, warehouse and inventory, asset tags, internal SKUs, tickets
EAN-13Exactly 13 digits (last is a check digit)Retail products sold internationally; books (ISBN-13 starts with 978/979)
UPC-AExactly 12 digits (last is a check digit)Retail products in the U.S. and Canada

This tool picks the most compact Code 128 encoding automatically, switching to its numeric mode for long runs of digits so the barcode stays short.

Important: product barcodes need registered numbers

To sell a product in stores or on most marketplaces, the EAN or UPC number must come from GS1, the organization that assigns company prefixes, so the number is unique worldwide and linked to your brand. This generator only draws the barcode for a number you already have; it can't give you a valid product number. Made-up numbers may clash with real products, and retailers such as Amazon check numbers against the GS1 database.

For internal use — your own stock, documents, library or event tickets — Code 128 with any value you like is the right choice and needs no registration.

Printing tips: print black bars on a white background; keep the blank margins (quiet zones) on both sides; don't stretch the image unevenly; and at a bar width of 1 px make sure your printer resolution is high enough — 2–3 px is safer for office printers.

Frequently asked questions

Is this barcode generator free for commercial use?

Yes. The barcodes are yours to use on labels, products and documents. Barcode symbologies such as Code 128 and EAN-13 are open standards.

Why does my EAN-13 number show a check digit error?

The 13th digit is calculated from the first 12. If it doesn’t match, there’s a typo. Enter just the first 12 digits and the tool adds the correct one.

Can I make a barcode for a website URL?

Code 128 can encode a short URL, but phones scan QR codes far more reliably. Use the QR code generator for links.

Is anything uploaded?

No. Barcodes are generated in your browser and downloaded straight from it.