Free barcode generator

Make retail, shipping and inventory barcodes in 22 formats, from EAN-13 and UPC-A to Code 128, GS1-128, ITF-14 and Data Matrix. Type the number and the check digit is worked out for you; a wrong one is caught before you print.

Each barcode is drawn in your browser and scan-checked there (all but DotCode and USPS Intelligent Mail, which no reader here decodes), then saved as PNG or JPG for screens, or as SVG, PDF and EPS for print. It's free, with no account and no watermark. Sign in to keep barcodes in your dashboard and edit them later.

12 digits, and the check digit is added, or all 13 to have it checked.

23 mm
11 modules

The blank margin left and right of the bars, in modules (the width of the narrowest bar). EAN-13 needs at least 11.

4×

Made in your browser; nothing you type is sent to QRdx. WebP and AVIF are encoded by QRdx's server when you pick them, and nothing is kept.

Formats

Which barcode should I use?

Selling in shops? Use the type your retailers ask for: EAN-13 almost everywhere, UPC-A in the US and Canada, both carrying a GTIN from GS1. Shipping to them? ITF-14 on cartons, GS1-128 on logistics labels. Labeling your own things? Code 128.

EAN-13 barcode generatorLinear

The barcode on retail products almost everywhere outside North America. It holds a 13-digit GTIN: a company prefix from GS1, an item number and a check digit. Books, magazines and printed music use it too; their types below print the ISBN, ISSN or ISMN above the bars.

EAN-8 barcode generatorLinear

For packs too small for an EAN-13, such as a lipstick or a pack of gum. EAN-8 numbers are issued separately by GS1; you can't shorten an EAN-13 into one.

UPC-A barcode generatorLinear

The 12-digit retail barcode of the US and Canada. Its number is the same as an EAN-13 that starts with 0, and checkout scanners read both.

UPC-E barcode generatorLinear

A UPC-A squeezed to six digits for small packs. Only UPC-A numbers with zeros in the right places can be shortened; enter a 12-digit UPC-A and the generator tells you whether yours can.

ISBN barcode generatorLinear

Books. The ISBN-13 is drawn as an EAN-13 starting 978 or 979, with the hyphenated ISBN printed above the bars. ISBN-10s are converted, and a 5-digit price add-on can go beside it for the US and Canadian book trade.

ISSN barcode generatorLinear

Magazines, journals and newspapers. The ISSN goes into an EAN-13 starting 977 with 2 digits for price or edition changes, and a 2-digit add-on usually carries the issue number.

ISMN barcode generatorLinear

Printed music: scores, parts and songbooks. The ISMN is drawn as an EAN-13 starting 979-0 with the ISMN printed above it, and old numbers starting with M are converted.

Code 128 barcode generatorLinear

The general-purpose barcode: letters, digits and symbols for asset tags, stock labels, tickets and shipping labels. It's compact and needs no registration, so use it whenever no retail standard applies.

Code 39 barcode generatorLinear

Older and wider than Code 128, with capital letters, digits and a few symbols. Some industries and older systems still require it, and nearly every scanner reads it.

Code 93 barcode generatorLinear

Code 39's characters in a shorter barcode, with two check characters that readers verify. Use it when a system asks for Code 93; otherwise Code 128 does the same job and more.

Codabar barcode generatorLinear

An older barcode of digits with a start and stop letter (A to D), still used by libraries, blood banks and some shipping labels. Use it when a system asks for Codabar; otherwise Code 128 is shorter.

ITF-14 barcode generatorLinear

Printed on corrugated cartons that hold retail products. It carries the 14-digit GTIN of the case, and its thick frame (bearer bars) evens out printing pressure and stops scanners reading only part of it.

GS1-128 barcode generatorLinear

Several pieces of supply chain data in one barcode, each marked by an Application Identifier: (01) GTIN, (10) batch, (17) expiry date, (00) SSCC for a pallet. Used on cases, pallets and logistics labels.

GS1 DataBar barcode generatorLinear

A retail GTIN in a smaller barcode than an EAN-13 or UPC-A, for items too small for those. Not every checkout scanner has it switched on, so check with the retailer before printing.

GS1 DataBar Expanded barcode generatorLinear

A GTIN plus more data, such as a weight, a price or an expiry date, marked by the same Application Identifiers as GS1-128. Used on fresh food sold by weight, so the checkout reads the price or weight from the barcode.

USPS Intelligent Mail barcode generatorLinear

US mail: the 4-state barcode USPS sorts letters and flats by and tracks them with. It holds a mailer ID from USPS, a service type, a serial number and the delivery ZIP Code. Mailers print it to get automation prices and track their mail.

Data Matrix barcode generator2D

A small square 2D code that holds a lot in little space, used to mark parts, electronics and labels. This is plain Data Matrix; the GS1 version required on some regulated packaging isn't offered here.

PDF417 barcode generator2D

A stacked 2D code that holds up to about a kilobyte of text. You'll find it on driver's licenses, ID cards and boarding passes.

Aztec barcode generator2D

A square 2D code found from its center, so it needs no blank margin. Transport operators use it for tickets shown on phone screens and printed at home.

rMQR barcode generator2D

A QR code stretched into a strip, as little as 7 modules tall, for labels too narrow for a square code: cables, test tubes and the edges of parts. It's a 2022 ISO standard, so check that your scanners read it.

MaxiCode barcode generator2D

The fixed-size 2D code with a bullseye that UPS prints on parcel labels. A carrier message puts the destination postcode, country and service class where sorting machines look for them; it can also hold plain text.

DotCode barcode generator2D

A 2D code of separate dots, made for inkjet printers marking packs at line speed: cigarette and tobacco packs for EU traceability, medicines and drinks. Its dots needn't touch, so rough, fast printing still reads.

Printing

Tips for barcodes that scan

Barcodes are static: the number or text is in the bars, so they work offline, never expire and have no scan statistics. Need a link people can scan with a phone? Use the QR code generators. To read a barcode, open the scanner.

  • Dark bars on a light background. Black on white is safest; dark blue and dark green work. Many scanners read with red light, which makes red, orange and yellow bars disappear.
  • Keep the quiet zone clear: no text, borders or artwork in the blank margin either side.
  • Retail EAN and UPC barcodes may be printed from 80% to 200% of their nominal size (an EAN-13 at 100% is 37.29 mm wide). The SVG, PDF and EPS downloads use a 0.35 mm module, about 107%. Scale them within that range, and don't cut the bar height.
  • Print the barcode, then scan it with the scanners that will read it before a large run.
  • Barcodes are drawn by bwip-js (MIT license), and the scan check uses ZXing compiled to WebAssembly, downloaded from the jsDelivr CDN the first time it runs.

Barcode generator FAQ

Is this barcode generator free?

Yes. There's no account, no watermark and no limit on downloads. Barcodes are drawn and checked in your browser, so nothing you type is sent to QRdx, except when you pick WebP or AVIF (QRdx's server encodes those and keeps nothing) or save a barcode to your dashboard.

Do I need to register my barcode number?

For products sold in shops, yes. EAN, UPC, ITF-14, GS1-128 and GS1 DataBar carry a GTIN, and GTINs are licensed to your company by GS1 (or GS1's organization in your country); retailers' systems won't recognize a made-up number. Books, serials and printed music use an ISBN, ISSN or ISMN from their national agency instead. This generator draws any valid number, but it doesn't issue or register numbers. For your own stock, assets or tickets, Code 128, Code 39 and Code 93 need no registration.

Does it add the check digit?

Yes, for EAN-13, EAN-8, UPC-A, UPC-E, ITF-14, ISBN, ISSN, ISMN, the GTIN of GS1 DataBar and the GTIN and SSCC fields of GS1-128 and GS1 DataBar Expanded: leave the last digit off and it's worked out. Enter the full number and the check digit is verified; a wrong one shows an error instead of a barcode.

Will my barcode scan?

As you edit, the generator decodes the PNG it would download with ZXing, an open-source barcode reader, and tells you whether it reads back the value you entered. It also warns about low contrast, light bars on a dark background, red bars and a quiet zone below the minimum. ZXing doesn't read DotCode or USPS Intelligent Mail, so those two aren't checked; test them with a reader that supports them. It can't see your printer, label stock or lighting, so print a test and scan it with the scanners that will read it.

Which file format should I download?

SVG, PDF or EPS for print: they're vectors, so the bars stay sharp at any size. SVG and EPS open in design tools such as Illustrator, InDesign and Affinity, and PDF opens anywhere. PNG is for screens, documents and online shops, and JPG for places that don't take PNG; WebP makes the smallest files, for websites; AVIF is there for systems that ask for it, and BMP is for older systems that only take BMP. Raise the image size for bigger pictures.

Can I save my barcodes?

Yes, with a free QRdx account. Signed in, press Save to dashboard and the barcode goes to Barcodes in your workspace, where you can find it again, edit it, put it in a folder and download it in any format. Every plan saves barcodes: 1,000 on Free.

Is there a barcode API?

Yes. https://api.qrdx.dev/v1/barcode?format=ean13&data=590123412345 returns that EAN-13 as an SVG, with no key; add type=png, type=pdf or another file type. It checks values the same way this page does. With an API key you can also save barcodes to your workspace. Every option is in the docs at qrdx.dev/docs/developers/barcode-api.

Can I track scans of a barcode?

No. Barcodes are static: the data is in the bars, and scanners read it without going online, so there's nothing to count. They don't expire either. If you need scan statistics, use a dynamic QR code, which points to a short link you can edit and track.

What is the quiet zone?

The blank margin on each side of the bars. Scanners use it to find where the barcode starts and ends: EAN-13 needs 11 modules (narrow bar widths), Code 128 needs 10. The generator starts at the minimum and warns if you go below it; if you trim it, leave the space in your layout.

What's the difference between a barcode and a QR code?

A linear barcode holds a short number or text in a row of bars, read by the laser and camera scanners at checkouts and in warehouses. A QR code is a 2D code that holds much more, such as a web address, and phone cameras read it on their own. For links, use a QR code.

Make your next QR code

Free in your browser, with no signup or watermark, and dynamic codes when you need them.