Free Barcode Generator: Create UPC, EAN, Code 128 & More Barcode Formats Online

Generate a barcode in seconds — free, no signup required. Download as PNG, SVG, or PDF.

Free ForeverNo Sign Up14 Barcode FormatsPNG/SVG/PDF

Any ASCII characters. Most versatile barcode.

Customize

Preview

Enter data to see preview

Runs in your browser. Nothing to install.

Barcode basics

What Is a Barcode?

A barcode is a visual representation of data — numbers, letters, or both — that can be read by machines. Most barcodes are one-dimensional (1D), displaying data as parallel black and white lines of varying widths. Two-dimensional (2D) barcodes like PDF417 and Data Matrix use patterns of squares and dots to store more information in a smaller space.

Barcodes power the modern supply chain. Governed by standards from GS1, they speed up checkout at retail stores, track packages across continents, identify patients in hospitals, and catalog books in libraries. If you've ever scanned a product at self-checkout or tracked a package online, you've used a barcode. There are many barcode types, each designed for specific industries and use cases. QRKIT's free barcode generator creates fourteen of them in seconds — the ten most widely used 1D formats plus four 2D codes, Data Matrix, GS1 DataMatrix, Aztec and PDF417 — with no software to install.

Barcode types

Barcode Formats Explained

Not all barcodes are created equal. Each type is designed for specific data formats, industries, and scanning environments. Here's what you need to know about each one.

1D Barcodes (Linear)

UPC-A

12-digit barcode standard in US and Canada retail. Found on virtually every product at checkout. Use a UPC barcode generator to create these for any retail item.

Retail product packaging

Free UPC barcode generator

UPC-E

Compressed 6-digit version of UPC-A. Designed for small items where label space is limited.

Small product packaging

UPC-E on the dedicated UPC page

EAN-13

13-digit international barcode standard used globally. The European equivalent of UPC-A.

International retail

Free EAN barcode generator

EAN-8

Compact 8-digit version of EAN-13 for small packages where a full EAN-13 won’t fit.

Small international packaging

EAN-8 on the dedicated EAN page

Code 128

Highly versatile barcode supporting full ASCII character set — numbers, letters, and symbols. The most flexible 1D barcode.

Shipping, logistics, healthcare

Free Code 128 barcode generator

Code 39

Alphanumeric barcode popular in logistics, defense, and automotive. Less dense than Code 128 but widely supported.

Logistics, defense, automotive

Code 39 barcode generator

Code 93

Encodes the same characters as Code 39 in a noticeably shorter symbol, with two built-in check characters. Useful when label space is tight.

Logistics, postal, inventory labels

ITF-14

Interleaved Two of Five barcode for shipping containers and pallets. GS1 standard for outer packaging.

Shipping containers, pallets

Free ITF-14 barcode generator

ITF

General-purpose Interleaved Two of Five. Encodes any even number of digits, so it suits internal reference numbers that are not GTINs.

Warehousing, distribution

Codabar

Digits plus - $ : . + / wrapped in A–D start and stop letters. Still standard on library cards, blood bags, and courier airbills.

Libraries, blood banks, couriers

2D Barcodes (Matrix)

The barcode tool above generates four of these — Data Matrix, GS1 DataMatrix, Aztec and PDF417 — alongside the 1D formats. For a QR code, use our free QR code generator. For the full explanation of how 1D and 2D barcodes differ, see our QR code vs barcode comparison.

PDF417

Stacked 2D barcode — rows of short linear codes piled on top of one another, so it comes out much wider than it is tall and a plain laser scanner can still read it. Used for shipping and freight labels, transport and customs documents, inventory tags, and identity documents. The field above takes up to 512 characters.

Logistics, transport documents, inventory

Generated by the tool above — see the dedicated page →

Data Matrix

Compact square 2D barcode with high data capacity. Common in healthcare, electronics, and automotive for small-part marking. Readable down to a few millimetres square.

Healthcare, electronics, automotive

Generated by the tool above — see the dedicated page →

GS1 DataMatrix

A Data Matrix carrying GS1 element strings — GTIN, batch, expiry — written as (AI)value pairs. The symbol GS1 asks for on regulated healthcare packaging. Print the human-readable text next to it in your label layout.

Pharmaceuticals, medical devices

Generated by the tool above — see the dedicated page →

Aztec

Square 2D code with a bullseye finder at its centre rather than at the corners, so it needs no quiet zone around it. Standard on rail and transit tickets and on many boarding passes.

Rail, transit, event tickets

Generated by the tool above — see the dedicated page →

QR Code

2D barcode storing URLs, text, contact info, and more. Scanned with any smartphone camera. Best for marketing and digital interactions.

Marketing, menus, check-in, payments →

GS1 Digital Link QR

The “2D barcode” retail is migrating to for GS1 Sunrise 2027: a QR code carrying your GTIN, batch, and expiry inside a web URL — scannable at checkout and by any phone. QRKIT generates these too.

Create a GS1 Digital Link QR code →Or check one you already have →

Not sure which barcode to choose? Use UPC-A for US retail products, EAN-13 for international retail — an ISBN is printed as an EAN-13 barcode — and Code 128 for shipping and logistics. When in doubt, Code 128 is the safest universal choice — it works in almost every industry. The exception is a specification that has already made the choice for you: logistics, defense and automotive standards still call for Code 39, and plenty of older fixed-mount scanners are configured for nothing else. Our free Code 39 barcode generator covers that case, uppercase-only alphabet and all. Publishing a book? There is no separate ISBN symbology to pick — paste the 13-digit ISBN into our free ISBN barcode generator and you get the EAN-13 printed on the back cover.

Format specs

Barcode format specs at a glance

Every format QRKIT generates, the data each one accepts, and where it fits best. The generator checks the length and character set as you type, so an invalid entry is caught before you download.

FormatData acceptedLengthBest for
Code 128Any ASCII textUp to 48 charsShipping, logistics, internal labels
EAN-13Digits only12–13 digitsInternational retail
EAN-8Digits only7–8 digitsSmall international packages
UPC-ADigits only11–12 digitsUS & Canada retail
UPC-EDigits only6 digits, or 8 starting 0/1Small US retail packages
Code 39A–Z, 0–9, - . $ / + % spaceUp to 43 charsLogistics, automotive, defense
Code 93A–Z, 0–9, - . $ / + % spaceUp to 48 charsTight labels, postal, inventory
ITF-14Digits only13–14 digitsShipping cartons & pallets
ITFDigits onlyAny even count, up to 24Warehousing & distribution
Codabar0–9 and - $ : . + / , A–D start/stopUp to 32 charsLibraries, blood banks, couriers

UPC, EAN, and ITF-14 include a check digit that QRKIT calculates for you automatically. Cases and pallets are the fiddliest of those: type 13 digits into our free ITF-14 barcode generator and the fourteenth is worked out and appended for you; type all 14 and a wrong one is refused rather than quietly corrected. Wondering how a barcode compares to a QR code?

How it works

How to Create a Barcode in 4 Steps

QRKIT's barcode generator makes it easy to create professional barcodes in under 3 minutes. Follow these steps.

Step 1

Choose Your Barcode Type

Select the format you need: UPC-A for retail, Code 128 for shipping, EAN-13 for books (ISBN), Data Matrix for small parts, PDF417 for IDs, or any of the 14 supported formats. If unsure, start with Code 128.

Step 2

Enter Your Data

Type or paste the data to encode — product number, tracking code, ISBN, or alphanumeric string. For UPC-A: 12 digits. For Code 128: up to 48 characters.

Step 3

Customize & Generate

Adjust barcode width and height. Add label text below the barcode. Select your download format: PNG, SVG, or PDF. Keep black-and-white for reliable scanning.

Step 4

Download & Use

Download your barcode instantly. Use PNG for web and digital, SVG for scalable graphics, or PDF for professional printing. Ready to use in under 3 minutes.

Pro tip: Always test your barcode with a physical scanner or scanner app before mass printing. Black-and-white barcodes scan 100% reliably — avoid custom colors for traditional barcodes.

Comparison

Barcode vs QR Code: Which Should You Use?

Barcodes and QR codes are both machine-readable codes, but they serve different purposes. Here's how they compare.

Barcode (1D)

Shape
Horizontal parallel lines
Data Capacity
20–48 characters
Scanning
Laser scanner or camera
Use Cases
Retail, shipping, inventory
Min. Size
~2.5 cm wide
Customization
Limited (black & white)
Error Correction
None

QR Code (2D)

Shape
Square matrix pattern
Data Capacity
Up to 4,296 characters
Scanning
Any smartphone camera
Use Cases
Marketing, payments, menus
Min. Size
~2 × 2 cm
Customization
Colors, logos, patterns
Error Correction
Up to 30% damage tolerance

When to Use a Barcode

  • Product pricing and inventory at retail checkout
  • Shipping labels and parcel tracking
  • Medication and patient tracking in healthcare
  • Book cataloging with ISBN in libraries
  • GS1-compliant supply chain operations

When to Use a QR Code

  • Marketing campaigns linking to URLs
  • Contactless menus, check-in, and payments
  • Sharing complex info (vCards, Wi-Fi, events)
  • Social media profile linking
  • Any scenario requiring smartphone scanning

Need QR codes? Create a custom QR code or explore all free QR tools

Not sure which is right for your project? See how QR codes compare to barcodes side by side.

Use both! QRKIT generates both traditional barcodes and QR codes. Retail products get barcodes; marketing campaigns get QR codes. The barcode tool on this page needs no account at all — the QR side is where a free account comes in.

Pricing

Barcodes Are Free — When You Need a QR Code

QRKIT's barcode generator is completely free — there is no paid barcode tier. Barcodes are static images, so if you need a code you can edit after printing or track scans on, that is a job for a dynamic QR code.

Barcode generator

Free forever
  • All 14 barcode formats
  • Unlimited barcodes — single or bulk
  • Download as PNG, SVG, PDF
  • Custom size, color & labels
  • No signup required
  • No watermarks
  • Commercial use allowed

Dynamic QR codes

When you need more

Barcodes can't be edited or tracked once printed. If you need that, a dynamic QR code is the right tool:

  • Edit the destination after printing
  • Track scans with location & device analytics
  • 20+ QR code types (URL, vCard, WiFi, PDF…)
  • Add your logo and brand colors
Learn about dynamic QR codes →

The barcode generator is free forever. There is no paid barcode tier — every format, unlimited barcodes, and all download types are included. If you need codes you can edit or track, create a dynamic QR code instead.

Use cases

5 Industries That Use Barcodes

From retail checkout to hospital wristbands, a free barcode generator helps businesses across every sector. Here are the top industries and the barcode types they rely on.

Retail & Inventory

Generate here: UPC-A, EAN-13

Barcodes are the backbone of retail. Every product at checkout uses a UPC or EAN code for price lookup and inventory management. Scan a cereal box at self-checkout — the barcode identifies the product, pulls the price, and updates inventory in real time. A UPC barcode generator creates retail-ready UPC-A codes for the US and Canada; EAN-13 is used internationally.

Shipping & Logistics

Generate here: Code 128, ITF-14

Shipping labels use Code 128 to encode tracking numbers, carrier codes, and routing data. ITF-14 is the GS1 standard for outer cartons and pallets — type the first 13 digits and the fourteenth is calculated for you. Every package you track online relies on barcodes at every stage of transit.

Healthcare & Pharmaceuticals

Generate here: Code 128, GS1 DataMatrix

Hospitals use barcodes on patient wristbands, medication packaging, and specimen labels. Scanning a medication barcode confirms the right patient gets the right dose. GS1 DataMatrix carries the GTIN, batch number and expiry date GS1 asks for on regulated packaging, written as (AI)value pairs — and it is one of the fourteen formats above.

Libraries & Publishing

Generate here: ISBN (EAN-13), Code 128

Every book has an ISBN barcode for universal identification and cataloging. Libraries use Code 128 for patron cards and asset tracking. Scan a book at checkout — the system updates inventory and patron records instantly.

Events & Ticketing

Generate here: Aztec, Code 128

Aztec is the square code on rail and transit tickets and on many boarding passes, and the generator above produces it. Code 128 is used for printed ticket verification, and QR codes are increasingly used for mobile tickets scanned from phones. PDF417, the other code on boarding passes and ID documents, is generated here too.

Also available in: Barcode Generator (Deutsch) · Generador de código de barras (Español) · Générateur de code-barres (Français) · Barcode Generator (Bahasa Indonesia) · Generatore di codice a barre (Italiano) · Barcode generator (Nederlands)

Best practices

Barcode Design & Printing Tips

A barcode generator creates the code — but printing and placement determine whether it scans. Follow these best practices to ensure your barcodes work reliably every time.

01

Black & White Only

Traditional barcodes must be printed in black on a white background. Custom colors significantly reduce scan reliability because barcode scanners depend on high contrast between bars and spaces.

02

Adequate Quiet Zones

The blank space either side of a barcode is part of the symbol, and it is specified in modules — 10 for Code 128 and Code 39, and an uneven 11 left / 7 right for EAN-13. Our generator sizes those from the bar width automatically, so widening the bars does not eat into them. Never crop a barcode tight to its outermost bar.

03

Test Before Printing

Always test your barcode with a physical scanner or scanner app before mass printing. A barcode that looks correct on screen may not scan due to size, resolution, or printing artifacts.

04

Minimum Size Matters

UPC and EAN codes: minimum 80% magnification (about 2.5 cm wide). Code 128: at least 2 cm wide for close-range scanning. Scale up for posters and signage scanned from a distance.

05

Set the Size, Not a Guess

Set the print width in millimetres or inches and pick 72–600 DPI, and the export is generated at exactly that size — no scaling it up in another program afterwards. SVG and PDF are both vector, so they scale to any size; PNG is the raster option for web and digital. Never screenshot a barcode for printing.

06

Choose the Right Type

Using the wrong barcode type causes scanning failures. UPC-A for retail, Code 128 for shipping, EAN-13 for books (ISBN). Verify your industry’s requirements before generating.

Universal compatibility. Barcodes are the global standard for product identification and tracking. QRKIT generates industry-compliant barcodes that work with every major scanning system — retail POS, warehouse scanners, healthcare devices, and smartphone apps.

Barcode Generator — Frequently Asked Questions

Get started

Create Your Barcodes Free

Use QRKIT's barcode generator to create your format in seconds — UPC, EAN, Code 128, and more. Download as PNG, SVG, or PDF. No signup required.

14 barcode formatsFree forever — no accountPNG, SVG & PDF downloadCommercial use allowed

Need 2D codes instead? See all QR code types including URL QR codes. For large-scale labeling, use our bulk QR code generator. Explore QR codes for business.