Free Online Barcode Generator

Generate Barcode.
Free, fast and easy.

Create UPC, EAN, Code 128, Code 39, ITF-14, Data Matrix, and PDF417 barcodes. Customize colors, download as PNG or SVG. The free barcode maker for retail, inventory, shipping, and manufacturing.

Code 128UPC-AEAN-13EAN-8Code 39ITF-14Data MatrixPDF417

What you can create with this tool

Our barcode generator supports 8 formats across 1D and 2D categories. Pick a format, enter your data, and download. Want to understand each format in detail? See our complete barcode types guide.

1D Formats

Linear Barcodes

Generate Code 128, UPC-A, EAN-13, EAN-8, Code 39, and ITF-14 barcodes. Each format has built-in validation so you cannot create an invalid barcode. Check digits are calculated automatically where required. The output follows official symbology specifications and is identical to what you would get from commercial barcode software.

Code 128UPC-AEAN-13EAN-8Code 39ITF-14
2D Formats

Matrix Barcodes

Create Data Matrix and PDF417 barcodes for compact data encoding. Data Matrix is the standard for electronics, healthcare, and aerospace component marking. PDF417 is used on government IDs, driver's licenses, and boarding passes. Both formats hold significantly more data than 1D barcodes.

Data MatrixPDF417

Color Customization

Change bar color, background color, or both using the color picker in the toolbar. Match your brand colors, create barcodes that blend into your packaging design, or stick with the default black on white. For reliable scanning, keep high contrast between bars and background.

Bar colorBackground colorScale control

Download and Export

Download as PNG for screens and digital use, or SVG for print. SVG files are vector graphics that scale to any size without losing sharpness, making them the right choice for product labels, packaging, signage, and anything that gets physically printed. You can also copy the barcode directly to your clipboard.

PNGSVGCopy to clipboard

Not sure which barcode format to use?

Our barcode types guide covers every format with comparison tables, use cases, and a decision guide to help you pick the right one.

Read the Guide

How do barcodes work?

A barcode is a machine readable representation of data. The data is encoded as a pattern of parallel bars (dark lines) and spaces (light gaps) of varying widths. When a scanner reads a barcode, it shines a light across the bars and measures the reflections. Dark bars absorb the light while light spaces reflect it. The scanner converts these patterns of reflection into electrical signals, which are decoded back into the original text or number.

Different barcode formats use different encoding schemes. In Code 128, for example, each character is represented by a specific combination of three bars and three spaces within a fixed width module. UPC-A uses a similar principle but with a fixed 12 digit structure optimized for retail scanning speed.

2D barcodes like Data Matrix and PDF417 store data in two dimensions, allowing them to hold much more information in a smaller space. They use a grid of dark and light squares (called modules) and include built-in error correction so they can still be read even if partially damaged.

Barcode standards and GS1

Barcode standards exist so that any scanner, anywhere in the world, can read any barcode of the same format. The organization responsible for maintaining these standards is GS1 , a global nonprofit with offices in over 100 countries.

GS1 manages the numbering systems behind UPC and EAN barcodes. When a company wants to sell products at retail, they apply for a GS1 company prefix. This prefix becomes the first part of every UPC or EAN barcode that company creates, ensuring no two products in the world share the same number.

Our barcode generator creates the visual barcode image from whatever data you provide. It does not assign or validate GS1 numbers. If you need a unique product identification number for retail, visit gs1.org/standards/get-barcodes to get started.

Who uses a barcode generator?

From small Etsy sellers to Fortune 500 warehouses, barcodes are essential tools across every industry. Here is how different businesses use our free barcode maker.

Retail and E-commerce

Generate UPC-A barcodes for products sold in stores, on Amazon, or on Shopify. Every physical product sold at retail needs a scannable barcode on its packaging. Small businesses use our free UPC barcode generator to create labels without expensive software.

Inventory and Warehousing

Create Code 128 or Code 39 barcodes for tracking stock, parts, and equipment. Print labels and scan them with any handheld scanner. The go-to free tool for warehouse managers labeling parts and bins.

Shipping and Logistics

Generate ITF-14 barcodes for shipping cartons or Code 128 for package tracking numbers. Scannable shipping labels keep your supply chain organized from warehouse to doorstep.

Libraries and Asset Tracking

Libraries, schools, and IT departments use Code 128 or Code 39 barcodes to tag books, computers, and equipment. Scan items in and out with any handheld scanner to track ownership and location.

Healthcare

Hospitals use Data Matrix barcodes on patient wristbands, medication packaging, and lab samples. Scanning prevents mix-ups and improves patient safety. The FDA requires unique device identification (UDI) barcodes on all medical devices.

Manufacturing

Track parts, assemblies, and finished goods through the production line with Code 128 or Data Matrix barcodes. Each barcode links a physical item to your manufacturing execution system for full traceability.

Frequently asked questions

Everything you need to know about our free barcode generator.

Yes. Select a format (Code 128 works for almost anything), type your data, and click Generate. Download as PNG for digital use or SVG for print. No account needed, no watermarks, no limits. For internal use (inventory, assets), you can use any numbering system. For retail products, get a unique number from GS1 first.
First, get a unique 12-digit UPC number from GS1 (gs1.org). GS1 assigns company prefixes that ensure your product number is globally unique. Once you have your number, select UPC-A from the format dropdown, enter your 12 digits, and click Generate. Download as SVG for the best print quality on product packaging.
Creating the barcode image is free using our generator. The cost comes from the product number itself. GS1 charges an initial fee (starting around $250) plus an annual renewal fee for a company prefix, which lets you assign unique numbers to your products. Once you have your numbers, generating the barcode images here costs nothing.
A barcode is the visual image (the pattern of lines). A UPC (Universal Product Code) is a specific 12-digit number assigned by GS1 for retail products. An SKU (Stock Keeping Unit) is an internal code that a business creates for its own inventory tracking. You can generate barcode images for any of these using our tool. The difference is in the numbering system: UPCs are globally unique, SKUs are only unique within your own business.
They should not. Every product variant (size, color, flavor) needs its own unique barcode number. That is why GS1 exists: to assign globally unique identifiers. If two products share a barcode, point-of-sale systems will ring them up as the same item. For internal inventory, uniqueness is your responsibility. For retail, always use GS1-assigned numbers.
Each format has strict data requirements. UPC-A needs exactly 12 digits. EAN-13 needs 13 digits. EAN-8 needs 8 digits. ITF-14 needs 14 digits. Code 128 and Code 39 accept variable-length text. If generation fails, check that your input matches the requirements shown in the placeholder text for the selected format.
PNG is a raster image made of pixels. Fine for screens and digital sharing. SVG is a vector format that scales to any size without losing sharpness, making it ideal for printing on product labels, packaging, or signage. If your barcode will be physically printed, always use SVG.
Yes. Use the color picker in the toolbar to change bar color and background color. You can also adjust scale for higher resolution output. For reliable scanning, maintain high contrast between bars and background. Black bars on white is the safest choice. Avoid low-contrast combinations like light gray on white.
Yes, QR code generation moved to its own dedicated site: QRCodeGenerator.to. It has presets for URLs, WiFi networks, contact cards (vCard), email, SMS, and plain text, with the same free, no-signup experience.