Skip to content

Barcode Generator

Pick a type, type your data and download the barcode.

Letters, digits, punctuation and spaces (any ASCII or Latin-1 character), up to 80.

Units
mm
mm
Human-readable text
Rotation

Put a tree, a shape or your own picture inside the bars.

SVG and PDF are vectors: sharp at any size, best for print.

Made in your browser. Nothing is uploaded.

More Barcode Tools

All tools

How to use the barcode generator

Three steps, all in your browser.

  1. 1

    Choose a type

    Pick UPC, EAN, Code 128 or another type, then type your data.

  2. 2

    Adjust the barcode

    Change the options if you need to. The preview updates as you type.

  3. 3

    Download

    Save the result and print it. Test a printed sample before a big run.

Barcode Generator: what to know

A barcode generator turns a number or text into the bar pattern of a symbology such as UPC-A, EAN-13 or Code 128. For retail barcodes the last digit is a GS1 check digit, which this generator calculates or verifies, so a typo can't reach the printer. The number itself comes from GS1, not from the generator.

The barcode generator makes every common 1D and 2D barcode from one place. Choose a type, type or paste your data and the barcode is drawn as you type. If the data doesn't fit the symbology, such as letters in an EAN-13 or a wrong check digit in a UPC, it says what's wrong instead of drawing a barcode that won't scan.

Each symbology has its own rules, and the generator follows them: GS1 check digits for UPC, EAN and ITF-14, the mandatory mod 103 check character in Code 128, start and stop characters for Codabar and Code 39, and error correction for 2D codes. Quiet zones, the blank margins scanners need, are included in the downloaded SVG, PNG or PDF by default, so the barcode keeps them wherever you place it.

Not sure which type to pick? Retail products need UPC-A or EAN-13 with a GS1 number. Internal labels usually use Code 128. Shipping cartons use ITF-14 or GS1-128. If you need a lot of data in a small space, choose Data Matrix, PDF417 or Aztec. Our barcode types guide compares them all. Not sure a number is right? Check it with the GTIN validator first, then test the printed barcode with the barcode scanner.

Popular uses

  • Product barcodes for packaging and swing tags
  • Inventory, asset and bin location labels
  • Barcodes for documents, forms and tickets
  • Testing scanners and point-of-sale systems with known codes

Tips for the best result

  • Vector files (SVG or PDF) stay sharp at any size, which makes them the best choice for packaging artwork.
  • Don't stretch a barcode unevenly in design software; resize it proportionally or make it at the size you need.
  • Use the barcode reader on this site to double-check a downloaded file before sending it to print.

Read how JustYourBarcode works and our privacy details. Numbers, pictures, CSV files and camera frames are processed in your browser and are never sent to our server. A barcode doesn't register a product number: retail UPC and EAN numbers come from GS1.

Frequently asked questions

For products sold in shops use UPC-A in the US and Canada or EAN-13 elsewhere, with a number from GS1. For shipping cartons use ITF-14 or GS1-128. For inventory, asset tags and anything with letters, Code 128 is the usual choice. For lots of data in a small space, use a 2D code such as Data Matrix or PDF417.

Yes. The barcode images you make are yours to use on products, labels and packaging, with no fee or attribution. What you may need to pay for is the number itself: retail UPC and EAN numbers are licensed from GS1.

The generator encodes your data to the symbology's standard, adds the check digit where one is required and keeps the quiet zones. Scanning also depends on printing: print at a sensible size with dark bars on a light, plain background, and test a printed sample before a big print run.

The generator flags a wrong check digit as you type. To check a UPC, EAN or GTIN-14 on its own and see its GS1 prefix, use the GTIN validator; to test the printed result, scan it with the barcode scanner on this site.

No. Barcodes are drawn in your browser, and camera frames, pictures and CSV files are processed on your device. Nothing is stored and nothing is sent to our server, and it's all gone when you close or reload the page.

No. A barcode is a picture of a number. Retail product numbers (GTINs such as UPC and EAN) are licensed from GS1, which links them to your company; making a barcode image here doesn't assign or register a number. Retailers and marketplaces may check numbers against GS1's records.

Yes. Every tool is free with no sign-up and no limits on use, including commercial use of the barcodes you make. Clearly labeled ads keep it that way.

Yes. The tools work in any modern browser on phones, tablets and computers, and the scanner uses your phone's camera.