Skip to main content
Online Tool

Online Barcode Generator

Create UPC-A, EAN-13, EAN-8, Code 128, Code 39, ITF-14 and Codabar barcodes. Download as PNG or SVG. Everything runs in your browser.

12 or 13 digits. Check digit auto-computed if 12 are entered.

3x
15 mm

Files are generated on your device — nothing is uploaded.

Supported barcode formats

Seven of the most common 1D symbologies used in retail, logistics, libraries and healthcare.

UPC-A
EAN-13
EAN-8
Code 128
Code 39
ITF-14
Codabar

About the online barcode generator

The ReadBarcode online barcode generator turns a value into a print-ready barcode in your browser. It renders UPC-A and EAN-13 for retail, Code 128 and Code 39 for labels, ITF-14 for shipping cartons, EAN-8 for small packaging, and Codabar for libraries and blood banks. Output is a scannable PNG or a vector SVG ready for packaging artwork.

Encoding runs entirely on your device with the bwip-js library — no server, no account, no upload. The check digit is computed for you when the format requires one, so you can paste a 12-digit base GTIN and get a valid EAN-13 back instantly.

When to use it

  • Mocking up product packaging or labels before a print run.
  • Generating Code 128 labels for internal inventory or asset tags.
  • Producing an ITF-14 carton barcode from a known GTIN-14.
  • Quickly creating a test barcode to verify a scanner setup.
  • Printing Codabar tickets, library cards or medical wristbands.
  • Embedding an SVG barcode in a design file at any scale without blur.

How it works

  1. Pick a format

    Choose the symbology that matches your use case — UPC-A and EAN-13 for retail, Code 128 for most everything else.

  2. Enter the value

    Type or paste the data. For UPC/EAN/ITF the check digit is optional — it's calculated automatically.

  3. Tune size and text

    Adjust the scale, bar height, and toggle the human-readable value under the bars.

  4. Preview live

    The preview re-renders on every change so you see exactly what will print.

  5. Download PNG or SVG

    Save the PNG for screens and slides, or the SVG for print and packaging.

What to avoid

  • Using a UPC or EAN code you don't own for resale — you need a GS1-issued company prefix.
  • Printing at less than 80% of the GS1 nominal size — small symbols often fail at retail scanners.
  • Cropping out the quiet zone (white space) around the bars — scanners rely on it.
  • Stretching the PNG non-proportionally in a design tool — use the SVG instead.
  • Encoding lowercase or special characters in Code 39 — it only allows uppercase A–Z, 0–9 and a few symbols.

Tips & tricks

  • For packaging artwork always export SVG so the bars stay crisp at any size.
  • If your scanner struggles, increase the scale by 1 and re-test before changing the format.
  • Use Code 128 for any internal label — it's denser and more reliable than Code 39.
  • Check the rendered value with the Barcode Reader on this site as a sanity test.
  • Validate retail GTINs with the GTIN Validator before printing thousands of labels.

Private by default

Barcodes are rendered locally in your browser with the bwip-js library. The value you enter and the PNG or SVG you download never touch our servers.

Frequently asked questions

Which barcode formats can I generate?
The generator supports the major retail and logistics 1D symbologies: UPC-A, EAN-13, EAN-8, Code 128, Code 39, ITF-14 and Codabar. For QR codes use the QR Code reader/generator pages.
Do I need to provide the check digit?
No. For UPC-A, EAN-13, EAN-8 and ITF-14 the generator will compute and append the correct GS1 mod-10 check digit automatically if you leave it off. You can also enter the full value with the check digit and it will be used as-is.
Is my data uploaded anywhere?
No. Rendering happens entirely in your browser using bwip-js. The value you type and the PNG/SVG file you download never leave your device.
What's the difference between PNG and SVG?
PNG is a raster image — good for emails, slides and screenshots. SVG is a crisp vector — best for printing labels and packaging because it stays sharp at any size.
Can I use these barcodes commercially?
Yes. You own the data you encode. To sell products through retailers you still need a GS1-issued company prefix so your UPC/EAN codes are globally unique — this tool only renders the symbol.

Related tools