sqwartHome

Barcode Generator

Create a scannable Code 128, EAN-13 or UPC-A barcode for products, labels, inventory or tickets, with the check digit worked out for you.

  • Free
  • No upload
  • No watermark
  • No sign-up
How it works

How to use the barcode Generator

  1. 1

    Pick the barcode type: Code 128, EAN-13 or UPC-A.

  2. 2

    Type the text or digits; the check digit is calculated and shown.

  3. 3

    Set the bar width, height, colors and whether to show the number.

  4. 4

    Download as SVG for print or PNG for the web.

In detail

Which barcode to use

  • Code 128: letters, digits and symbols, compact and dense. Used for shipping labels, inventory, asset tags, tickets and anything internal. It includes its own check symbol.
  • EAN-13: the 13-digit retail barcode used on products in most of the world, including India. The first digits are a country/company prefix assigned by GS1.
  • UPC-A: the 12-digit retail barcode used in the US and Canada. It's the same as an EAN-13 that starts with 0.

Check digits, done for you

EAN-13 and UPC-A end with a check digit that scanners use to catch misreads. For EAN-13 it's found by weighting the first 12 digits alternately by 1 and 3, adding them, and taking what's needed to reach the next multiple of 10. Type 12 digits and the 13th is added; type all 13 and the tool checks that the last one is right and tells you the correct digit if not.

Code 128 has a check symbol too: a weighted sum of every symbol, modulo 103, placed before the stop pattern. The generator also switches to Code 128's compact number mode for runs of digits, so long numbers make shorter barcodes.

Printing barcodes that scan

  • Use SVG for print: it stays perfectly sharp at any size.
  • Keep the white margin (quiet zone) on both sides; it's built into the image.
  • Dark bars on a light background. Colored barcodes scan only with strong contrast; red bars often fail.
  • Retail EAN or UPC numbers must be licensed from GS1 to be used on products sold in stores; this tool draws the barcode for a number you already have.
FAQ

Questions, answered.

Is the check digit calculated automatically?

Yes. For EAN-13 and UPC-A, type the number without its check digit and it's added. If you type the full number, the check digit is verified.

Can I use these barcodes on products in shops?

The barcode image is standard and scannable, but retail stores require a number registered with GS1 (GS1 India in India). Use the number GS1 gives you.

What can Code 128 encode?

Letters, digits, spaces and standard keyboard symbols (printable ASCII). Accented letters and other scripts can't be encoded in Code 128.

SVG or PNG?

SVG for printing and design tools, since it never blurs. PNG for websites, documents and spreadsheets.

Is there a watermark or limit?

No watermark, no sign-up and no limit; barcodes are drawn in your browser.

Keep going

More free creator tools