💼 Business & Freelance

Barcode Generator

Make printable barcodes for products, labels and inventory.

  • 12 symbologiesCode 128 to Pharmacode
  • PNG + SVGdownloads
  • Check digitsadded for EAN/UPC/ITF-14
  • No watermarkfree to use

How to use the Barcode Generator

  1. 1

    Choose the barcode type

    Code 128 for general text; EAN or UPC for retail numbers.

  2. 2

    Type the value

    The status line shows ✓ or explains what the type accepts.

  3. 3

    Adjust the look

    Bar width, height, font size, margin, colours and the text line.

  4. 4

    Download

    SVG for print, PNG for documents and screens.

Features

Code 128 / 39 / 93

Letters, digits and symbols.

EAN-13, EAN-8, UPC-A, UPC-E

Retail product formats.

ITF-14 and Interleaved 2 of 5

Cartons and numeric codes.

Live validation

Tells you the allowed characters and lengths.

Crisp PNG

Rendered at 3× without smoothing.

Vector SVG

Scales to any print size.

Who uses it — and for what

Small shops

Shelf and inventory labels.

Warehouses

Bin, pallet and asset tags.

Libraries and schools

Codabar or Code 39 cards.

Developers and testers

Test barcode scanners and POS apps.

Which barcode should I use?

  • EAN-13 / UPC-A — for retail products sold in shops. Real product numbers must be licensed from GS1 (GS1 India, GS1 US…); the last digit is a check digit, calculated automatically if you leave it off.
  • Code 128 — compact and can encode letters, numbers and symbols; the standard for shipping labels, inventory and asset tags.
  • Code 39 — older but still common in industry and ID badges; upper-case letters, digits and a few symbols.
  • ITF-14 — printed on outer cartons and cases.
  • Codabar — libraries, blood banks and courier slips.

Printing tips

Download SVG for print — it stays perfectly sharp at any size; PNG is fine for documents and screens. Keep dark bars on a light background (scanners need contrast), leave the white “quiet zone” margins, and don’t print EAN/UPC codes smaller than about 80% of their nominal size (37×26 mm for EAN-13). Test a printed sample with a phone scanner, such as our Barcode Scanner, before printing thousands of labels.

Getting real product barcodes from GS1

The generator draws any valid number, but a retail EAN or UPC number must come from GS1, the not-for-profit body that manages these codes worldwide, through its national member organisation (GS1 India, GS1 US, GS1 UK and so on). You license a company prefix and assign product numbers from it, so no two products anywhere share a code. Supermarkets, marketplaces and distributors typically check numbers against GS1 data, and numbers resold by unofficial vendors can be rejected.

The first digits of an EAN show which GS1 organisation issued the prefix — 890 for GS1 India, for example — not where the product was made. Books use EAN-13 numbers starting 978 or 979 that are ISBNs, issued by your national ISBN agency rather than GS1 directly. For internal stock, shelf labels or asset tags, you don’t need GS1 at all: use Code 128 with your own SKU numbers.

Choosing settings that scan reliably

  • Contrast: dark bars on a white or very light background. Red bars are invisible to many red-light laser scanners, and inverted (light-on-dark) codes fail on many devices.
  • Quiet zone: keep the margin at its default or larger, and don’t print text or borders right next to the bars.
  • Height: taller bars are easier to scan at an angle; don’t squash retail codes.
  • Scaling: resize the SVG proportionally; stretching only the width changes the bar ratios.
  • Test: scan a printed sample with the Barcode Scanner before a big print run. For URLs or longer text, a QR code is usually the better choice.

Worked examples

EAN-13 check digit, worked by hand

For the made-up number 123456789012, multiply the digits alternately by 1 and 3 from the left: 1 + 6 + 3 + 12 + 5 + 18 + 7 + 24 + 9 + 0 + 1 + 6 = 92. The check digit is what brings the total to the next multiple of 10: 8. Type the 12 digits and the tool encodes 1234567890128.

UPC-A, EAN-8 and ITF-14

The same mod-10 rule gives: UPC-A 12345678901 → check digit 2; EAN-8 1234567 → 0; ITF-14 1123456789012 (packaging indicator 1 + the first 12 EAN digits) → 5, encoding 11234567890125.

How big will the PNG print?

Bar width is the width of the narrowest bar in pixels, and the PNG is 3× larger. With bar width 2 each module is 6 px; placed at 300 dpi that is about 0.51 mm — roughly 154% of EAN-13’s nominal 0.33 mm. Bar width 1 gives about 0.25 mm (77%), below the usual 80% minimum for retail codes.

Pro tips

  • Type 12 digits for EAN-13 and let the tool add the check digit — fewer typing errors.
  • Use SVG for labels sent to a printer; PNG for Word, spreadsheets and web pages.
  • Code 128 is denser than Code 39 for the same text, so labels can be smaller.

Glossary

Check digit
A final digit calculated from the others so scanners can catch misreads.
Module (X-dimension)
The width of the narrowest bar; EAN-13 is 0.33 mm at 100%.
Quiet zone
Blank space before and after the bars that scanners need.
GS1 company prefix
The licensed number block a business uses to create retail barcodes.

Frequently asked questions

Can I make a barcode for my product to sell on Amazon or in shops?

You can draw any EAN/UPC here, but the number itself must be a GS1-registered code for retail use.

Why does it say my value is invalid?

Each type accepts specific characters and lengths — e.g. EAN-13 needs 12 or 13 digits.

Is there a watermark?

No — downloads are clean and free for commercial use.

Can I make up an EAN number for products I sell?

Not for retail. Shops and marketplaces expect a GS1-licensed number; made-up numbers may clash with real products.

Why is my 13-digit EAN marked invalid?

If you type all 13 digits, the last one must be the correct check digit. Type only the first 12 and the tool calculates it.

Found it useful? Share the Barcode Generator:

Last updated 2026-11-28 · Built by Vinayak Agarwal · Part of Business & Freelance (13 tools)