Skip to content
wonderstacked

Barcode Generator

Make Code 128, EAN-13, UPC-A and more, as SVG or PNG.

Runs in your browser
Loading Barcode Generator…

How do I make a barcode?

A barcode generator turns a number or text into a scannable pattern of bars. This barcode generator makes Code 128, EAN-13, EAN-8, UPC-A, Code 39 and ITF-14 codes, adds the check digit for you, and exports SVG or PNG, all in your browser.

A barcode turns a number or a short piece of text into a pattern of bars that a scanner can read. Choose a format, type the data, and the tool draws the barcode instantly. Download it as an SVG for print or as a PNG for documents and labels.

Pick the format by where the code will be used. Code 128 encodes any plain ASCII text and suits inventory, shipping and internal labels. EAN-13 and UPC-A are the retail product codes on packaging. EAN-8 is the short retail version, Code 39 is common in industry and ID badges, and ITF-14 labels cartons. For the retail formats, enter the number without its last digit and the tool calculates and adds the check digit, or enter the full number and it verifies it.

Everything is drawn in your browser. A code that scans on screen can still fail on paper, so print a sample at the real size, keep a quiet margin around the bars and use dark bars on a light background. EAN and UPC numbers only identify your product at a shop if they are issued to you by GS1; a generated code is fine for testing, practice and private use.

Page updated .

How to use the Barcode Generator

  1. Choose the barcode format that matches where it will be used.
  2. Type the data. For EAN and UPC you can leave off the check digit.
  3. Adjust the bar width, height and colours, then download the SVG or PNG.

Examples

Inventory label
Input
Code 128: WS-2026-0042
Output
A scannable code carrying the text WS-2026-0042
Retail test code
Input
EAN-13: 590123412345
Output
5901234123457, with check digit 7 added
Carton label
Input
ITF-14: 1234567890123
Output
12345678901231, with check digit 1 added

Tips

  • Use SVG for printing, because it stays sharp at any size.
  • Keep strong contrast and a blank margin around the bars.
  • Print a test label and scan it before producing a whole sheet.

Specs & limits

Formats
Code 128, EAN-13, EAN-8, UPC-A, Code 39, ITF-14
Check digits
Added for EAN, UPC and ITF-14; verified if present
Export
SVG and PNG
Processing
In your browser

Troubleshooting

›The printed barcode will not scan

Cause: Low contrast, bars too thin for the printer, or no quiet margin.

Fix: Use black on white, increase the bar width and leave blank space around the code.

›A message about the check digit

Cause: The last digit does not match the calculated one.

Fix: Remove the last digit and let the tool add the right one.

Frequently asked questions

›Which barcode format should I use?

Use Code 128 for general text and inventory labels. Use EAN-13 or UPC-A only for retail product numbers, and ITF-14 for outer cartons.

›What is a check digit?

The last digit of an EAN or UPC number, calculated from the others so scanners can catch misreads. The tool adds it if you leave it off.

›Why does the tool reject my EAN-13?

Either it contains something other than digits, it has the wrong length, or the final digit does not match the calculated check digit. The message says which.

›Can I use a generated EAN or UPC in a shop?

Only if the number belongs to you. Retail numbers are allocated by GS1, so a made-up one can clash with a real product.

›Is a QR code better than a barcode?

A QR code holds far more data, such as a web link. A linear barcode is simpler, scans fast with cheap scanners and is what point-of-sale systems expect.

›Is my data sent anywhere?

No. The barcode is drawn in your browser.

More generators tools

See all
esc