Skip to content
StylQR home
Barcode Guides

How to Generate Barcodes Online for Free

Make a barcode online for free: pick the right type, enter valid data, set the bar width in mm, keep the quiet zone, and download print-ready SVG, PNG or PDF.

By StylQR Editorial TeamPublished Updated 5 min read

StylQR blog cover: How to Generate Barcodes Online for Free, illustrated with a barcode with a desktop screen, a download arrow and a gift on a ocean background
Table of contents

To generate a barcode online for free, choose the barcode type your scanner or retailer expects, type in your data, set the bar width and height for the space you have, then download it as SVG or PDF for printing or PNG for screens. Scan a printed test before you print the full run.

The steps are quick. What takes care is choosing the right type and size, so this guide covers those along with the clicks.

Before you start: two decisions

Which barcode type?

Different scanners and systems expect different symbologies. The common cases:

What you're labelingType to use
A product sold in shops or on marketplacesEAN-13, or UPC-A in the US and Canada
BooksISBN (drawn as EAN-13)
Outer cartonsITF-14 or GS1-128
Stock, assets, bin locations, documentsCode 128
A legacy system or an industry spec that names itCode 39
Lots of data on a small labelData Matrix or QR code

For a fuller tour, see types of barcodes explained.

Where does the number come from?

For retail products, the number has to be a GTIN licensed to your brand by your national GS1 organization (GS1 US, GS1 India, GS1 UK and so on). Any generator can draw 13 digits, but a retailer's system will only accept a number registered to you. StylQR doesn't issue or sell numbers. How to create a barcode for your products covers that licensing step.

For internal use, you decide the scheme. Asset tags like IT-000412 or bin locations like A-03-02 work well in Code 128.

Step by step with the StylQR barcode generator

  1. Open the barcode generator and pick a type under Which barcode. You can search, for example "EAN" or "shipping", or go straight to a type page such as the Code 128 generator.
  2. Enter your data. The field validates as you type. For check-digit types like EAN-13, UPC-A and ITF-14, enter the digits without the check digit and it's added for you; if you enter a wrong one, you'll see the correct digit and a Fix it button.
  3. Add GS1 data if needed. For GS1-128 and GS1 DataMatrix, use Add a GS1 Application Identifier to insert fields like GTIN (01), batch (10) or expiry date (17) in brackets with a sample value, then type over the sample.
  4. Set the size. Under Printed size, set Bar width (X-dimension) and Bar height in millimeters. The tool shows the total printed width and height so you know whether it fits your label.
  5. Check the quiet zone. Leave the Quiet zone setting on. It adds the blank margin scanners need either side of the bars.
  6. Adjust the look. Change Bar color and Background, the Human-readable text under the bars, Rotation, or add a Frame with label text. If you choose a color that red-laser scanners can't see, you'll get a warning.
  7. Download and test a proof. Before ordering a print run, print one at actual size and scan it with the scanner or app that will really be used, checking the decoded value matches what you entered.
  8. Download the final files. Choose PNG, JPG or WEBP at 300, 600 or 1200 DPI, a vector SVG, or a PDF at the exact printed size. Print labels lays copies out on Avery label sheets.

Getting the size right

Barcode size is set by the X-dimension, the width of the narrowest bar. Everything else scales from it.

  • EAN-13 and UPC-A: 0.33 mm is the standard (100%) size. GS1 allows 80% to 200%, roughly 0.26 mm to 0.66 mm, per GS1 Sweden's size guide.
  • ITF-14 and GS1-128 on cartons: much larger, with a recommended X-dimension around 0.495 mm in the same guide.
  • Code 128 and Code 39 on internal labels: there's no single rule. Start around 0.25 mm to 0.33 mm for handheld scanners at close range and go larger for scanning at a distance.

Match the X-dimension to your printer. A 203 dpi thermal printer places dots about 0.125 mm apart, so 0.25 mm (2 dots) or 0.375 mm (3 dots) prints cleanly; 0.3 mm would force uneven bars.

Don't squash the height to fit. A shorter barcode is harder to scan at an angle, and retailers often reject truncated EAN and UPC codes.

Warning: Never stretch or resize a PNG barcode in design software after downloading. Scaling a pixel image unevenly changes bar widths and can make it unreadable. Use the SVG or PDF, or download the PNG at the exact size you need.

Which file format to download

FormatUse it for
SVGPackaging artwork, design tools, any size without blur
PDF (exact size)Sending to a printer; prints at the millimeter size you set
PNG at 300 to 1200 DPIWord documents, label software, web pages
JPG or WEBPWeb and email where file size matters
Avery label sheetsPrinting a page of identical labels on a desktop printer

What goes wrong

  • No quiet zone. Artwork or a box border touching the bars is the most common reason a generated barcode won't scan.
  • Low contrast. Gray bars on a colored background, or red bars at all, fail on many scanners.
  • Wrong type. A Code 128 barcode containing an EAN number won't be accepted at a checkout expecting EAN-13.
  • Invented retail numbers. They scan, but they aren't registered to you, and marketplaces and retailers can reject them.
  • Printing too small for the printer. Fine bars on a low-resolution printer bleed together. Increase the X-dimension.

If a code still won't read, how to read and decode barcodes covers scanner settings and troubleshooting.

Making many at once

If you have a list of products or asset numbers, don't make them one at a time. The bulk barcode generator takes a spreadsheet, pasted list or number sequence and produces a ZIP of images or a PDF of label sheets. How to generate multiple barcodes at once walks through it.

Frequently asked questions

Are barcodes from a free generator legal to use on products?

The image is yours to use. What matters for retail is the number inside it: product barcodes must carry a GTIN licensed to your company by GS1. Internal barcodes can carry anything.

Do generated barcodes expire?

No. A barcode is just a printed pattern of the data you entered, so it keeps working as long as the print is readable.

Can I make a barcode in Word or Excel instead?

You can with barcode fonts, but fonts don't calculate check digits or enforce quiet zones for every type, and some symbologies can't be drawn reliably with a font. An image or vector file from a generator avoids those problems.

What DPI should I use for printing barcodes?

Use 300 DPI for most office and commercial printing, and 600 DPI or higher for small codes. For professional packaging, send SVG or PDF so the printer can output at its own resolution.

Share this guide

StylQR blog cover: How to Generate Multiple Barcodes at Once, illustrated with stacked barcodes with a spreadsheet and a ZIP file on a ocean background

Barcode Guides

How to Generate Multiple Barcodes at Once

Generate hundreds of barcodes at once from Excel, CSV, a Google Sheet or a number sequence, then download a ZIP of images or a PDF of printable label sheets.

· 5 min read