Barcode Generator — Code 128, EAN-13 & UPC-A

Generate free Code 128, EAN-13, UPC-A, or Code 39 barcodes and download them as PNG. Rendered in your browser, with no signup needed.

Work in your browser

Local and private

How to use Barcode Generator — Code 128, EAN-13 & UPC-A

Three simple steps, with your content kept on your device.

01

Enter a value

Add the text or digits required by your barcode format.

02

Choose a format

Generate Code 128, EAN-13, UPC-A, or Code 39.

03

Download the barcode

Save a clean PNG generated in your browser.

Built for useful work

Fast, focused, and made to be clear on every screen.

Common formats

Create flexible Code 128 and Code 39 or retail EAN and UPC codes.

Readable output

Adjust bar height and choose whether the value is printed.

Local generation

Barcode content is never submitted to a remote service.

What is a barcode generator?

A barcode generator turns text or numbers into a machine-readable barcode image. The result can be printed on labels, packaging, tickets, or inventory tags and read instantly by a scanner.

Barcodes encode data as patterns of parallel bars and spaces of varying width. When a scanner reads the pattern, it converts it back into the original digits or characters — a fast, reliable way to identify items without typing.

Barcode formats explained

This generator supports Code 128, Code 39, EAN-13, and UPC-A. Code 128 handles a broad range of characters and is a general-purpose choice; Code 39 is common for inventory and internal labeling.

EAN-13 and UPC-A are the retail standards used on products sold in stores. They encode digits only, and the numbers are managed through official registration systems to keep them globally unique.

Barcode vs QR code

A barcode stores a short sequence of digits or characters in one dimension, read horizontally. A QR code stores more data in two dimensions — enough for URLs, Wi-Fi details, or contact information — and is read as a square.

Choose a barcode when you need a small, scannable identifier for a product or item, and a QR code when you need to carry more data or point a phone camera at something interactive.

How to generate and print a barcode

Enter the value your format requires, pick a format, adjust the bar height if needed, and download a clean PNG. Print at a size that keeps the bars sharp — small, low-resolution output is the most common reason a barcode fails to scan.

Test the printed result with the scanner that will actually read it. A code that scans on screen may need a larger print size or higher contrast on paper.

Checksum digits in retail formats

EAN-13 and UPC-A include a checksum digit calculated from the other digits. The checksum lets a scanner detect misreads, so a damaged or mistyped code is caught instead of accepted.

When you omit the final digit, this generator calculates it for you. If you provide the full value, it validates the checksum and flags an invalid one.

Barcode use cases

Barcodes appear on retail products, warehouse shelves, library books, event tickets, and shipping labels. Anywhere an item needs a fast, unique identifier, a barcode is the standard answer.

For small-scale needs — labeling products, tracking assets, or organizing inventory — generating the codes locally keeps the process simple and free of third-party services.

Choosing the right barcode format

Pick Code 128 when you need maximum flexibility and a broad character set, Code 39 for simple alphanumeric labels, and EAN-13 or UPC-A when the code will appear on retail products sold through stores.

When in doubt, match the format to how the code will be used. Retail sales channels generally expect EAN-13 or UPC-A, while internal inventory and shipping labels work fine with Code 128 or Code 39.

Barcode quality and scanning reliability

A barcode scans reliably when it has high contrast, quiet space around the bars, and sharp edges. Blurry printing, low resolution, or cramped margins are the usual causes of scan failures.

Generate at a reasonable size, keep the image free of distortion, and verify with a real scanner. A short test at the start beats discovering a bad batch after printing.

Scaling barcodes across package sizes

The same barcode value can be rendered at many sizes, from a tiny label on a spare part to a large code on a shipping box. What matters is that the proportions stay intact and the bars remain crisp at the chosen scale.

If a printed code is too small for the scanner in use, regenerate it at a larger size rather than stretching the image, which blurs the bar edges and harms readability.

Frequently asked questions

Which barcode format should I choose?

Code 128 supports a broad range of characters. EAN-13 and UPC-A are common retail formats, while Code 39 is often used for inventory and labels.

Why is my EAN or UPC value rejected?

EAN-13 requires 12 or 13 digits and UPC-A requires 11 or 12 digits. The final checksum can be calculated when omitted.

Can I print the downloaded barcode?

Yes. Use a sufficiently large image and test the printed result with the scanner that will read it.