Barcode Generator

Create classic 1D barcodes for products, shipping cartons, inventory and badges. Check digits are calculated for you.

  • 100% free
  • Never expires
  • No signup
  • Private: made in your browser

Most versatile: letters, digits and symbols. Ideal for shipping labels and inventory.

Appearance
#000000
#ffffff

Barcode preview

To sell in shops, EAN/UPC numbers must be licensed from GS1. This tool only draws the barcode.

In short

To generate a barcode, choose the type (EAN-13 for retail products, Code 128 for labels and inventory, ITF-14 for cartons…), enter the value, and download the PNG or SVG. For EAN, UPC and ITF-14, type the number without its last digit and the check digit is added automatically.

Barcodes vs QR codes

Linear barcodes (1D) store a short number or code in vertical bars and are read by laser and camera scanners at checkouts, warehouses and libraries. QR codes (2D) store much more information and are designed for phones. Many businesses need both: a barcode for the point of sale and a QR code for customers.

This generator supports the most common symbologies: EAN-13 (retail products worldwide), EAN-8 (small packages), UPC-A (USA and Canada), Code 128 (letters and digits, shipping and inventory), Code 39 (industry, ID badges) and ITF-14 (outer cartons). It validates the input and computes the GS1 check digit automatically.

Important: to sell products in retail stores, your EAN/UPC numbers must come from GS1, the organization that assigns company prefixes. This tool draws the barcode; it does not assign numbers.

How to create a barcode

  1. Choose the barcode type

    Pick the symbology required by your retailer, carrier or system.

  2. Enter the value

    For EAN-13 type 12 digits (we add the 13th), or 13 digits to verify an existing code.

  3. Adjust the appearance

    Bar width, height, colors, text size and margins. Keep dark bars on a light background.

  4. Download

    Download SVG for print and packaging artwork, or PNG at 2×, 4× or 8× resolution.

Common uses

Retail products

EAN-13 and UPC-A codes on packaging scanned at the checkout.

Inventory and assets

Code 128 labels for stock, tools, IT equipment and documents.

Shipping

ITF-14 on cartons and Code 128 on parcel labels.

Badges and tickets

Code 39 or Code 128 for employee IDs, library cards and event tickets.

Printing tips

  • Use black bars on a white background; red bars are invisible to many laser scanners.
  • Respect the quiet zone (blank margin) on both sides of the barcode.
  • Don’t squeeze the barcode horizontally — scale it proportionally.
  • Print at least the standard size for EAN-13 (about 37 × 26 mm at 100%) when possible.
  • Test the printed barcode with the scanner that will actually read it.

Frequently asked questions

Are these barcodes valid for selling in stores?

The barcodes are technically valid, but retailers require numbers licensed by GS1 for your company. Get your prefix from your local GS1 organization.

What is a check digit?

The last digit of EAN, UPC and ITF-14 codes, calculated from the other digits to detect reading errors. We compute it for you.

Which barcode type should I use for inventory?

Code 128 is the best general choice: compact and supports letters, digits and symbols.

Can I download a vector file?

Yes. The SVG download is a vector file that stays sharp at any size.

Is the barcode generator free for commercial use?

Yes, without limits or attribution.

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

UPC-A has 12 digits and is used mainly in North America; EAN-13 has 13 digits and is used worldwide. A UPC-A code can be read as an EAN-13 with a leading zero.