Back to tools

Barcode Generator

Generate Print-Ready Barcodes in Seconds

Retail packaging, warehouse labels, library books, and event tickets all rely on machine-readable barcodes, yet most people do not have a scanner-friendly barcode tool nearby when they need one. This barcode generator solves that problem: you pick a symbology, type your digits or text, and the tool produces a clean, scalable barcode image instantly. It supports the formats that actually matter in the wild — EAN-13, UPC-A, Code128, and Code39 — and it computes the check digit for you automatically, so you never have to hand-calculate a Modulo 10 value again. Everything runs in your browser, meaning your data never leaves your device and there is no signup, watermark, or usage limit.

How to Create a Barcode

  1. Pick a symbology — EAN-13 for retail products, UPC-A for North American stores, Code128 for general text, or Code39 for simple alphanumeric labels.
  2. Enter your data in the input field. For EAN-13 or UPC-A, type 12 digits and let the tool append the 13th check digit for you.
  3. Choose the output size and the image format — SVG for crisp vector print, PNG for screens and documents.
  4. Review the live preview and confirm the bars look clean, with a solid white quiet zone on both sides.
  5. Click download and save the file, or copy the image to your clipboard for pasting into a label template.
  6. Verify the result with a scanner app before printing in bulk.

Real Example: Input and Output

Imagine you are labeling a new food product. You enter the GS1 company prefix and item reference, and the tool fills in the check digit automatically, exactly as a point-of-sale scanner expects it.

InputOutput
590123412345EAN-13 with check digit: 5901234123457
INV-2024-001Code128 barcode encoding the full text

Tips for Best Results

When to Use This Tool

Frequently Asked Questions

What is a check digit and how is it calculated?

It is the final digit of EAN-13 and UPC-A codes, computed with a Modulo 10 algorithm. Digits in odd positions are summed and multiplied by 3, even positions are added, and the check digit makes the total a multiple of 10. The tool does this for you.

What is the difference between EAN-13 and UPC-A?

UPC-A encodes 12 digits and is standard in North America; EAN-13 encodes 13 digits and is used almost everywhere else. A UPC-A code converts to EAN-13 by adding a leading zero.

Can Code128 encode letters and symbols?

Yes. Code128 supports the full ASCII character set, including lowercase letters, digits, and punctuation, which makes it ideal for asset tags and shipment labels.

What is the difference between Code39 and Code128?

Code39 encodes uppercase letters, digits, and a few symbols, and needs a wider area for the same data. Code128 is denser, supports lowercase and special characters, and is the better choice for long values.

Why is my scanner not reading the barcode?

Common causes are a missing quiet zone, low print contrast, blurry low-resolution output, or a damaged label surface. Regenerate at higher DPI with a white background and re-test.

Should I download PNG or SVG?

Use SVG for anything printed at varying sizes, because it scales without losing sharpness. Use PNG for documents, emails, and screen use where a raster image is simpler.

Do I need a license to generate retail barcodes?

For products sold in retail, yes — you need a GS1 company prefix. The tool generates the graphic, but the number itself must come from your GS1 allocation to be valid at checkout.

What is the difference between a barcode and a QR code?

A barcode stores data in one dimension (horizontal bars) and holds a small amount of information. A QR code is two-dimensional and can store far more data, including URLs and contact details.