Barcode Generator

Make scannable barcodes for products, shelves, cartons and labels. Pick a symbology, type or paste your data, and download a crisp SVG or a PNG. Vector output is the point for anything you will print: a barcode has no resolution as an SVG, so it stays sharp at whatever size the label needs, while a scaled-up PNG gets the soft edges that make a scanner hesitate. Retail codes are almost always quoted without their final check digit, so give this twelve digits for an EAN-13 and it works out the thirteenth for you — and if you paste all thirteen with a wrong one, it tells you which digit it should have been rather than just refusing. Every symbology is checked against its own rules before anything is drawn, so you find out that Code 39 has no lowercase or that a smart quote slipped into your Code 128 here, not when a scanner in a warehouse will not read the label. Paste a whole column from a spreadsheet and get a sheet of barcodes as a single ZIP. Nothing is uploaded.

Choosing a symbology

SymbologyAcceptsTypically used for
Code 128Any ASCII, any lengthShipping, logistics, internal labels
EAN-1312 or 13 digitsRetail products outside North America
EAN-87 or 8 digitsSmall retail packaging
UPC-A11 or 12 digitsRetail products in North America
Code 39A-Z, 0-9 and - . $ / + %Older and industrial systems
ITF-1413 or 14 digitsOuter shipping cartons
MSIDigitsWarehouse and shelf marking
Pharmacode3 to 131070Pharmaceutical packaging control
CodabarDigits and - $ : / . +Libraries, blood banks, couriers

When to use it

  1. Label products with EAN-13 or UPC-A for retail.
  2. Print Code 128 labels for shipping and internal logistics.
  3. Mark shelves and bins for inventory with Code 39 or MSI.
  4. Generate a whole batch of labels from a spreadsheet column.
  5. Work out the check digit for a retail code you only have partly.

How to Use

  1. Choose the symbology you need — Code 128 is the general-purpose default.
  2. Type your data, or paste one value per line for a batch.
  3. Adjust height, bar width and whether the text shows underneath.
  4. Download each barcode as SVG or PNG, or take the whole set as a ZIP.

Features

  1. Code 128, EAN-13, EAN-8, UPC-A, Code 39, ITF-14, MSI, Pharmacode and Codabar
  2. Check digits calculated automatically for EAN, UPC and ITF
  3. A wrong check digit is named, not just rejected
  4. Per-symbology validation that says which character is the problem
  5. Batch generation — one value per line, or a pasted spreadsheet column
  6. Sharp vector SVG output, plus PNG at your chosen scale
  7. Adjustable height, bar width, margin, colours and caption
  8. Download all as a ZIP
  9. 100% client-side — product codes are never uploaded

FAQs

Is my data uploaded?

No. Barcodes are drawn in your browser and never transmitted, which matters for product codes and internal SKUs that are commercially sensitive before a launch.

Should I download SVG or PNG?

SVG for anything you will print. It is a vector, so it stays perfectly sharp at any label size, and scanners are sensitive to the crispness of bar edges. Use PNG only when whatever you are pasting into refuses vectors.

What is a check digit and do I need one?

It is the last digit of EAN, UPC and ITF codes, computed from the ones before it so a scanner can catch a misread. You do not need to supply it — enter the 12 digits of an EAN-13 and the 13th is calculated for you. If you do supply it and it is wrong, you will be told what it should be.

Which symbology should I use?

Code 128 for shipping, logistics and anything internal — it is dense and encodes any ASCII. EAN-13 for retail products outside North America, UPC-A inside it. Code 39 when you need something older systems reliably accept. ITF-14 for outer shipping cartons.

Why was my Code 128 rejected?

Almost always a character above ASCII — most often a curly apostrophe or dash that a word processor substituted when you typed it. The tool names the exact character so you can replace it with the straight equivalent.

Can I make many barcodes at once?

Yes. Put one value per line, or paste a column straight from a spreadsheet, and every line becomes its own barcode. Download them individually or take the whole set as a ZIP.

Will these actually scan?

Yes, provided you print them large enough and keep the white margin around the bars intact. That quiet zone is part of the symbol, not decoration — cropping it is the most common reason a correctly-generated barcode will not read.

Technical Details

JsBarcode draws the bar pattern to an SVG, which is what makes the output worth printing: a vector has no resolution, so the bars stay sharp at any label size, where a PNG scaled up produces the soft edges that make a scanner hesitate. A PNG is rendered from that same SVG at a chosen scale for tools that will not take vectors. The interesting work is in front of the renderer. Each symbology has its own constraints, and JsBarcode reports only pass or fail, so validation is done here first to say what is actually wrong. EAN-13, EAN-8, UPC-A and ITF-14 all end in a modulo-10 check digit whose weights of 3 and 1 alternate from the RIGHT — anchoring them to the left instead gets half these symbologies wrong depending on length, which is a classic and silent bug. Retail codes are usually quoted without that digit, so supplying 12 digits for an EAN-13 computes and appends the thirteenth, and supplying all 13 verifies it and names the correct digit when it is wrong. Code 39 has no lowercase, so mixed-case input is uppercased rather than rejected, since that is what a scanner reads back anyway. Code 128 covers ASCII but nothing above it, and the usual cause of failure is a smart quote pasted in from a word processor, so the offending character is named. Pharmacode is bounded to 3 through 131070. Codabar's optional A-D start and stop letters are recognised before its body is checked. Input is taken a line at a time, so a pasted column from a spreadsheet becomes a whole sheet of labels downloadable as one ZIP. Everything renders in the page and no data is uploaded.

Generator Tools

Generator Tools

  • WiFi QR Code Generator
  • Password Generator
  • Certificate Generator
  • Receipt Generator
  • Signature Pad
  • Password Strength Checker
  • Lorem Ipsum Generator
  • Random Color Generator