Barcode Generator

Generate barcodes in various formats including Code128, EAN, UPC. Free, fast, and works entirely in your browser with no sign-up required.

Updated

Share:
Home/Utility Tools/Barcode Generator

Barcode Generator

Generate barcodes in 11 formats (Code128, EAN-13, UPC, QR and more). Supports batch generation, custom styling, QR builder, scanner, and presets.

Settings

Common Presets

Data Input

Code 128

General purpose — all printable ASCII characters

Example: ABC-12345

Use case: Shipping, inventory, logistics

Preview
100%

Enter data to generate barcode

Example: ABC-12345

Supported Formats Reference

Features

11 barcode formats including QR
Custom foreground & background colors
8 color palette presets
Label text override & toggle
Download as PNG, SVG, or WebP
Copy image to clipboard
Print support
Zoom in/out preview
Batch generation with CSV import
Download all batch barcodes (PNG + SVG)
QR Builder: URL, WiFi, vCard, text
QR error correction levels (L/M/Q/H)
Transparent QR background
Webcam QR scanner (jsQR)
Image upload QR scanner
Scan history
Check digit validation & suggestion
Format reference with click-to-use
Persistent localStorage history (30 items)
Size presets: label, shelf, retail

Privacy first: All barcodes are generated and scanned entirely in your browser. No data is transmitted to any server.

Frequently Asked Questions

What is the difference between a Code 128 and an EAN-13 barcode?

EAN-13 is the 13-digit retail standard scanned at point-of-sale tills worldwide; its number is assigned by GS1 and it is purpose-built for products sold in shops. Code 128 is a flexible, high-density symbology that encodes digits, letters, and symbols, making it the usual choice for internal SKUs, asset tags, and shipping references where you control the numbering. The simplest rule: if a code must scan at a retail checkout, use EAN-13 (or UPC-A in North America); for everything in-house, Code 128 is more compact and accepts text. Picking the wrong one means a reprint when the scanner refuses it. This generator supports both formats plus EAN-8, UPC-E, Code 39, ITF-14, and more, so you can select the right symbology from a dropdown and preview it before printing.

What is a barcode check digit and does this tool calculate it for me?

A check digit is the final digit of EAN and UPC codes, computed mathematically from the preceding numbers. The scanner recalculates it on read and rejects the code if it does not match, which is how it catches a misread or a typo before bad data enters a till system. Because it follows a fixed formula, an incorrect check digit makes the whole barcode invalid even if every other digit is right. This generator validates your input against each format's rules in real time: for EAN and UPC it verifies the trailing check digit and, when it is wrong, suggests the correct one so the printed label will actually scan. Enter your product number above and the tool confirms the math for you, removing the most common reason a freshly printed barcode fails at the checkout.

When should I use a QR code instead of a regular barcode?

Regular one-dimensional barcodes like EAN, UPC, and Code 128 store data in the width of their bars, so they hold a short string of digits or letters and are read by retail and warehouse scanners. QR codes are two-dimensional and hold far more information, including full website links, Wi-Fi credentials, and contact details, and they scan instantly from a phone camera. Use a 1D barcode when the value feeds a point-of-sale or inventory system that expects a product number; choose a QR code when you want a person to open a link, join a network, or save a contact by pointing their phone at it. This tool includes a dedicated QR builder that assembles URL, Wi-Fi, vCard, or plain-text codes with selectable error-correction levels from L to H, alongside its eleven barcode symbologies.

Should I download my barcode as a PNG or an SVG for printing?

Choose SVG whenever the barcode will be printed. SVG is a vector format, so the bars stay perfectly crisp at any size, from a small shelf tag to a large carton label, with no blurring or jagged edges when scaled. PNG is a fixed-resolution raster image: it is fine for screens, slides, and web pages, but enlarging it past its native size softens the bars and can hurt scan reliability. A clean, high-contrast print is what lets a scanner read a code on the first pass, which is why print shops prefer vector files. This generator exports PNG, resolution-independent SVG, and compressed WebP, and you can also copy the image to your clipboard or send it straight to your printer. For printed labels, pick SVG; for quick on-screen use, PNG is the convenient option.

Why does my printed barcode fail to scan even though it looks correct?

Most scan failures come from physical print problems rather than wrong data. The biggest culprit is the quiet zone, the blank margin on each side of the bars; if it is too narrow the scanner cannot find where the code starts and stops. Low contrast also breaks reads, so keep dark bars on a light background and avoid coloured or transparent fills behind the bars. Printing too small, scaling a low-resolution raster image up, or using the wrong symbology for the scanner all cause refusals too. This generator helps you avoid these: it lets you set the quiet-zone margin, bar width and height, use real-world size presets, control bar and background colours, and export sharp SVG for clean printing. Adjust the margin and size above, print at full resolution, and test the result before running a full batch.

About the Barcode Generator

The Barcode Generator creates scannable retail and logistics barcodes straight from your browser. Type in a product number, a part SKU, an ISBN, or a website URL, choose a symbology, and the tool draws the bars on the fly and lets you download them as a sharp image. It is built for shop owners listing inventory, warehouse and shipping teams labelling cartons, librarians, self-publishers, and anyone who needs a real, machine-readable code without paying for desktop software or signing up for an account.

Everything is generated on your own device. The barcode patterns are computed in JavaScript and drawn to a canvas or SVG locally, so the values you enter — order numbers, internal codes, contact details — are never sent to a server. There is no login, no watermark, and no limit on how many codes you make.

Eleven barcode symbologies, validated as you type

The generator supports the formats most workflows actually need: Code 128 and Code 39 for general-purpose and industrial labels, EAN-13 and EAN-8 for retail products worldwide, UPC-A and UPC-E for North American retail, ITF-14 for shipping cartons and GS1 cases, MSI Plessey for shelf and inventory tags, Codabar for libraries and blood banks, Pharmacode for pharmaceutical packaging, and full QR codes.

Each format has its own rules, and the tool checks your input against them in real time. Numeric-only symbologies reject letters, EAN and UPC codes verify the trailing check digit and even suggest the correct one if it is wrong, and Pharmacode enforces its valid range of 3 to 131071. Catching an invalid value here means the printed label will actually scan at the till or scanner.

Customise the look, then export for print or screen

You can size a code for its real-world job using presets for small labels, shelf tags, and retail-standard prints, or set the bar width, height, and quiet-zone margin by hand. Other controls let you toggle the human-readable text underneath, adjust its font size, add a custom label line, switch the bars and background to any colour, turn on a transparent background, and rotate the symbol to a vertical orientation for narrow spaces.

When the code looks right, export it as a PNG, a resolution-independent SVG for clean printing at any size, or a compressed WebP. You can also copy the image straight to your clipboard or send it to your printer in one click.

Batch mode, a QR builder, and a built-in scanner

Three extra modes round out the tool:

  • Batch generation turns a pasted list — one value per line — into a set of barcodes you can download together as PNG or SVG files, handy for tagging a whole inventory sheet at once.
  • The QR builder assembles structured QR codes without you memorising the syntax: a website URL, Wi-Fi network credentials (so guests join by scanning), a vCard contact card, or plain text, with selectable error-correction levels from L to H.
  • The scanner reads existing codes using your device camera or an uploaded photo, decoding them locally and keeping a short history of recent scans.

What barcodes are and why the format matters

A barcode is a visual encoding of data that a scanner converts back into characters. One-dimensional codes like EAN, UPC, and Code 128 store a string of digits or letters in the width of their bars; QR codes are two-dimensional and hold far more data, including links and contact details. The right symbology is dictated by where the code will be read: an EAN-13 is required for products sold through retail point-of-sale systems, while Code 128 is the flexible choice for internal SKUs, asset tags, and shipping references. Choosing correctly the first time saves a reprint when a scanner refuses to read the wrong type. Enter a value above to generate, preview, and download your barcode in seconds.