My tools

BARCODE GENERATOR / EAN · UPC · CODE 128 · DATA MATRIX

Barcode generator

Pick a type, enter the number, and the check digit is done for you. Download it or print labels.

  • Free
  • No sign-up
  • No watermark
  • Commercial use allowed
  • Data stays on your device
Made in your browser · no watermark

For EAN, UPC and ITF-14 enter the digits without the check digit and it is added for you.

Print size and resolution 300 dpi · X 0.33 mm

Every bar is drawn as whole printer dots (X snaps to the dot pitch). PNG/JPG carry the DPI and SVG/PDF/EPS come out at true millimetre size, so design apps place them without rescaling.

Styles

Paid elsewhere, free here

How similar tools commonly charge for these features, and what XunL actually offers, limits included.

FeatureHow similar tools usually chargeXunL
Barcode imagesHow similar tools usually chargeFree versions may add watermarks or restrict commercial useXunLNo watermark, commercial use allowed, never expire
Where codes are generatedHow similar tools usually chargeSome generate them on the provider's serversXunLIn your browser; numbers are not uploaded

Drawing a barcode does not give you the number: retail EAN/UPC numbers come from GS1.

This summarises common practice among similar tools, not any single product. Their pricing can change, so check their own websites. XunL limits are as stated on this page. Reviewed October 2026.

YOUR NEXT STEP

Finish your materials, then connect the rest of your work

Use image and document features under their stated free limits. Create a company account for website monitoring, business inquiries and team notifications, or discuss your workflow with us.

New companies receive a 7-day Pro trial, with no card required. Trials exclude the paid monthly credit grant.

Already have an account? Open your workspace →

How to create a barcode

  1. Choose the type and enter the number. For retail codes enter the digits without the check digit; wrong check digits are flagged with the correct value.
  2. Set the printer DPI, X-dimension or magnification, bar height and quiet zone under Print size and resolution, and colour and human-readable text under Appearance, with a live preview.
  3. Download SVG, PDF or EPS for packaging and print, PNG or JPG for spreadsheets and web pages, or switch to Label sheets to print at true size.

Which barcode should I use?

Common barcode types and uses
TypeUsed forContent
EAN-13Retail products worldwide (China, Europe, Asia)Digits, 13 including the check digit
UPC-A / UPC-EUS and Canadian retail; UPC-E for small packsDigits, 12 / 8
EAN-8Packs too small for EAN-13Digits, 8
ISBNBooks (EAN-13 plus price add-on)13 digits from 978/979, optional 5-digit add-on
ITF-14Outer cartons (GTIN-14) with bearer barsDigits, 14
GS1-128Logistics labels: SSCC, batch, expiry, weightGS1 Application Identifiers
Code 128Internal IDs, bin locations, Amazon FNSKU, parcelsLetters, digits and symbols
Code 39Industrial, automotive and legacy systemsUpper-case letters, digits, - . $ / + %
Data MatrixSmall parts, electronics, medical devices (GS1 DataMatrix)Any text, up to about 2,000 characters
PDF417IDs, boarding passes, shipping documentsAny text, up to about 1,800 characters
ISSN / ISMNMagazines and serials (977, with a 2-digit issue add-on); printed music (979-0)8-character ISSN / ISMN-13
SSCC-18Unique pallet and logistics-unit numbers (GS1-128 AI 00)Digits, 18
Interleaved 2 of 5Warehouse and distribution-centre numbersEven number of digits
Code 93Canada Post and logistics; more compact than Code 39Upper-case letters, digits, symbols (Full ASCII adds lower case)
PZNGerman pharmaceutical number (a Code 39 variant)Digits, 8
GS1 DataBarFresh produce, variable-weight items, coupons, small pharma packsGTIN-14; Expanded adds weight, expiry and more
GS1 Digital Link QRThe QR code for retail packs from 2027 (GS1 Sunrise 2027), serving checkout and shoppershttps://id.gs1.org/01/… URL carrying the GTIN
QR / Micro QR / rMQRURLs, manuals, tiny and long narrow spacesAny text; Micro QR about 21 characters
Aztec / MaxiCodeTickets and boarding passes; UPS parcel sortingAny text; MaxiCode about 90 characters
MicroPDF417Stacked code for small packs and medical devicesAny text, up to about 150 characters

Print size and scanning requirements

X is the width of the narrowest bar. GS1 allows retail codes from 80% to 200%; codes printed smaller or with truncated bars may not scan. Use dark bars on a light background: red, orange and yellow bars are invisible to red-light scanners. Test-scan the first print.

Summarised from the GS1 General Specifications
TypeX-dimensionBar heightQuiet zone
EAN-13 / UPC-A0.264 – 0.660 mm(80% – 200%)About 22.85 mm at 100%Left 11X, right 7X (UPC-A 9X each side)
ITF-140.495 – 1.016 mmAt least 32 mm10X each side plus bearer bars
GS1-128Logistics labels 0.495 – 1.016 mmAt least 32 mm10X each side
Code 128 / FNSKUIdeally at least 0.25 mmAt least 6 mm or 15% of the length10X each side
GS1 DataBarAt least 0.264 mmOmni at least 33XNo extra quiet zone needed
2D codes (QR, Data Matrix…)Modules at least 0.25 mm; 0.5 mm or more for phone scanning—QR 4 modules, Data Matrix 1–2 modules

Snap to whole printer dots

Printers can only print whole dots. On a 203 dpi thermal printer a dot is about 0.125 mm, so an X of 0.33 mm (2.6 dots) prints some bars 2 dots wide and some 3, and uneven bars scan poorly. Choose your printer DPI under Print size and resolution and the X-dimension snaps to whole dots (0.375 mm = 3 dots at 203 dpi), with the real magnification and print size shown.

Where do retail barcode numbers come from?

This tool draws barcodes; it does not issue numbers. To sell through supermarkets, Amazon, Walmart and other retailers, EAN/UPC numbers come from a GS1 company prefix licensed by your national GS1 office, with one number per product; cheaply resold numbers may be rejected by marketplaces. Internal, warehouse and FNSKU labels can use Code 128 with no registration.

GS1 Sunrise 2027: retailers worldwide aim to scan 2D codes at checkout by the end of 2027. New packs can add a GS1 Digital Link QR code beside the EAN/UPC (choose GS1 Digital Link QR and enter the GTIN): shoppers open the product page with a phone, and checkout reads the same GTIN. Keep the EAN/UPC during the transition.

Frequently asked questions

Can I use the barcodes commercially? Do they expire?

Yes: free, no watermark, commercial use allowed, and they never expire. A barcode is just your number drawn as bars, created in your browser without passing through our server.

What if the printed barcode does not scan?

The usual causes are printing too small, truncated bar height, crowded quiet zones or poor contrast. Print larger following the size table, set the print scale to Actual size / 100%, and use a 203 dpi or better thermal printer.

SVG, PNG or printed labels?

Give designers SVG for packaging and print (vector, scales cleanly); use PNG in Excel, web pages and Word; use label printing for office or thermal printers, laid out at true millimetre size.

Can I export PDF or EPS, or set the DPI?

Yes. A single barcode downloads as PNG, SVG, PDF, EPS, JPG or WebP, and bulk ZIPs offer the same formats. PDF and EPS are vector files at true millimetre size for print shops and Illustrator; PNG/JPG carry the DPI you choose, so Word and InDesign place them at the right size.

How do I set the X-dimension, magnification and DPI?

Under Print size and resolution pick the printer DPI, then enter the X-dimension (for retail codes you can enter the magnification instead; 100% = 0.33 mm). Bars snap to whole printer dots and the real X, magnification and print size are shown, with a warning outside the GS1 range.

What barcode types are there, and which should I use?

Retail products use EAN-13 (worldwide) or UPC-A (US and Canada), with numbers issued by GS1; outer cartons and case logistics use ITF-14; warehouses, couriers and internal tracking use Code 128 (letters and digits) or GS1-128 (with application identifiers such as batch and expiry); Code 39 appears on older systems and industrial labels; for more data in a small area use 2D Data Matrix or QR codes. If unsure, ask the receiver or marketplace which symbology they require.

Practical Scenarios & Extended FAQ

When should I choose UPC-A, EAN-13, Code 128 or ITF-14?

Use UPC-A (12 digits) for North American retail, EAN-13 (13 digits) for international retail, Code 128 for shipping labels/FNSKU/alphanumeric SKUs, and ITF-14 for master cartons.

How do I make sure printed barcodes scan reliably every time?

Export vector SVG for sharp bar edges, keep high black-on-white contrast, preserve quiet zones on both sides and avoid placing bars across box folds.

Can I generate dozens of SKU barcodes in one batch?

Yes—use our linked Bulk Barcode Generator to paste a SKU list and download all barcodes together.

Barcode generator practical guide and common questions

What does a Barcode generator do?

Supports EAN-13, EAN-8, UPC-A, UPC-E, ISBN, ITF-14, GS1-128, Code 128, Code 39, Codabar, Data Matrix, GS1 DataMatrix and PDF417; retail codes and GS1 Application Identifiers get their check digits added and verified.

Who is this for, and when is it useful?

Online sellers, factories, warehouses and designers creating product barcodes, internal codes for bins and assets, or artwork for packaging.

How do I use this Barcode generator?

Choose the type, enter the number (retail check digits are added), adjust height and text under Appearance, then download PNG / SVG or switch to label printing.

How should I interpret the results?

This tool draws barcodes but does not issue numbers; retail EAN/UPC numbers come from GS1. Test-scan the first print.

Where is the work performed, and which services receive data?

Barcodes are encoded and drawn in your browser by bwip-js; numbers and imported files are never uploaded.