Skip to content
SnapTools

Barcode Generator

Runs in your browser

Generate Code 128, EAN-13, UPC-A, Code 39, ITF-14 and MSI barcodes as PNG or SVG. Each format's rules are validated in your browser.

General purpose; accepts letters, digits and symbols.

Enter a value

About this tool

Barcode symbologies are not interchangeable, and picking the wrong one is the usual reason a printed label refuses to scan. Code 128 encodes arbitrary text and is the right default for internal labelling. EAN-13 and UPC-A are the retail standards, and both compute a final check digit from the preceding digits — which is why they demand exactly 12 or 11 digits and reject anything else. This generator enforces each format's rules rather than producing an image that looks like a barcode but cannot be read.

How to use

  1. Choose the symbology you need — Code 128 unless a standard requires otherwise.
  2. Enter the value. The rule for the selected format is shown beneath it.
  3. Download as SVG for print, or PNG for screens and documents.

When to use this tool

  • Labelling internal inventory or asset tags with Code 128.
  • Generating retail EAN-13 codes for products with a GS1 prefix.
  • Producing ITF-14 codes for shipping cartons.
  • Creating test barcodes to validate a scanner integration.

Tips

  • Use SVG for anything printed — a scaled-up PNG blurs the bar edges and scanners fail on soft edges.
  • Keep the light 'quiet zone' either side of the code; cropping tight to the bars breaks scanning.
  • EAN-13 takes 12 digits and calculates the 13th; do not type the check digit yourself.

Limitations

  • Each symbology has strict rules — EAN-13 needs exactly 12 digits, UPC-A 11. Invalid values are rejected rather than rendered as an unscannable image.
  • A real retail barcode needs a GS1-issued company prefix; this generates the image, not the right to use a given number.

FAQ

Is my data uploaded?
No. The barcode is rendered in your browser. Nothing is transmitted or stored.
Why was my value rejected?
Because that symbology cannot encode it. EAN-13 needs exactly 12 digits, UPC-A 11, and Code 39 accepts only uppercase letters, digits and a few symbols. Rejecting is deliberate — the alternative is an image that looks fine and never scans.
Can I use a generated EAN-13 on a real product?
Only if the number is yours. Retail barcodes must be built on a company prefix issued by GS1; this tool renders the image, it does not grant you the right to a given number.