Barcode Generator

Converters & calculators·Free · in browser

Barcode Generator

Generate Code 128, EAN-13, UPC-A, Code 39, ITF-14, MSI and Pharmacode barcodes and download them as PNG. Runs entirely in your browser.

Barcode Generator
All tools

A barcode generator renders a value into a scannable one-dimensional symbology such as Code 128, EAN-13 or UPC-A. Code 128 encodes the full ASCII set and is the right choice for anything internal; retail codes need a GS1-issued prefix to be valid in shops.

Runs entirely in your browser · no signup · nothing is uploaded · updated 2026-08-29

Symbology

Any ASCII. The general-purpose default.

How to use it

  1. 1.Type the value you want encoded.
  2. 2.Pick the symbology your scanner or retailer expects.
  3. 3.Download the PNG and print it at a size the scanner can read.

Barcode symbologies compared

Retail codes need a number issued under a GS1 company prefix. Anything internal can use Code 128 with no registration.

FormatEncodesLengthUse it for
Code 128Full ASCIIVariableAnything internal - assets, locations, references
Code 39A-Z, 0-9, few symbolsVariableLegacy industrial scanners
EAN-13Digits13 (12 + check)Retail products outside North America
EAN-8Digits8Small retail packaging
UPC-ADigits12Retail products in North America
UPC-EDigits8Compressed UPC for small packs
ITF-14Digits14Shipping cartons and outer cases
CodabarDigits, ABCDVariableLibraries, blood banks, couriers

Frequently asked questions

Which barcode format should I use?

Code 128 for anything internal - it encodes the full ASCII set and is the most widely scanned. EAN-13 and UPC-A are only for retail products with a registered GS1 number.

Can I make my own EAN-13 number?

You can generate the image, but a valid retail barcode requires a company prefix from GS1. Inventing digits produces a scannable code that collides with someone else's product.

How small can I print a barcode?

Keep the narrowest bar at or above 0.33mm and leave a quiet zone of at least ten times that on each side. Squeezing the quiet zone is the most common reason a printed barcode will not scan.

Why is my value rejected?

Each symbology has strict rules - EAN-13 needs exactly 12 or 13 digits, Code 39 accepts only uppercase and a few symbols, Pharmacode only numbers from 3 to 131070.

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

A barcode is one-dimensional and holds around 20 characters. A QR code is two-dimensional and holds thousands, including URLs. Use a barcode for inventory numbers, a QR code for links.

Do I need to buy a barcode for my product?

For retail, yes - a GS1 company prefix. Retailers reject numbers that do not resolve to a registered owner. For internal warehouse or asset tracking, generate whatever you like.

What is the check digit?

The final digit of EAN and UPC codes, computed from the others. It lets a scanner detect a misread. Enter 12 digits for EAN-13 and the check digit is calculated for you.

What resolution should I export for print?

At least 300 DPI, and never scale the image after export - resampling blurs the bar edges and scanners start failing.

The guide behind this tool

Tools that pair with this one

Built something?

RankCert is a weekly launch board where products rank on domain control we verify ourselves - not upvotes. Listing is free and the link is dofollow whether or not you display our badge.