Skip to main content
ToolCube – All tools at one place.

Free Barcode Generator

Create EAN-13, UPC, Code 128, ISBN, GS1-128, Data Matrix and other barcodes. Check digits are calculated for you, every barcode is scan-tested, and you can print whole sheets of labels.

  • Check digits added
  • Scan-tested
  • Nothing is uploaded

Loading Barcode Generator…

How to Use

How to Make a Barcode

Four steps, with nothing to install and no account.

  1. 1

    Step 1: Pick the Type

    Choose EAN-13 for retail products, UPC-A for the USA, Code 128 for stock codes, or another type.

  2. 2

    Step 2: Enter the Number

    Type the number or text. Check digits are added, and mistakes are explained as you type.

  3. 3

    Step 3: Set Size and Style

    Choose the bar width, height, quiet zone, text, colours and rotation for your label.

  4. 4

    Step 4: Download or Print

    Download PNG at 150 to 600 DPI, SVG or PDF, or print a whole sheet of sticker labels.

Guide

Which barcode type do you need?

  • Retail products: EAN-13 in Pakistan, Europe and most countries; UPC-A in the USA and Canada; EAN-8 and UPC-E for small packs.
  • Books: an ISBN barcode, which is an EAN-13 made from your ISBN.
  • Your own stock codes, asset tags and shelf labels: Code 128, or Code 39 where older systems require it.
  • Shipping and logistics: ITF-14 on outer cartons, and GS1-128 on pallet labels with batch numbers and expiry dates.
  • Lots of data in a small space: Data Matrix for parts and medicine packs, PDF417 for ID cards and boarding passes.
  • Libraries and courier slips: Codabar. More types, such as Code 93, Aztec, GS1 DataBar, MSI and Pharmacode, are under “More”.

Barcode numbers and GS1 registration

To sell products in stores or on marketplaces, EAN/UPC numbers must be officially registered with GS1. This tool creates the barcode image for any number you enter. A barcode is only a picture of a number. For retail, the number is what matters: GS1 (GS1 Pakistan for businesses in Pakistan) gives you a company prefix, and every product gets its own number from it, so no two products in the world share a barcode. For your own warehouse, office or library codes, no registration is needed; Code 128 is the usual choice.

Check digits, calculated for you

EAN, UPC, ITF-14 and ISBN numbers end in a check digit worked out from the other digits, so a scanner notices when it misreads a bar. Type the number without it, for example 12 digits for EAN-13, and it is added. Type the full number and the last digit is verified; if it is wrong, you are told which digit it should be. ISBN-10 numbers are converted to ISBN-13 automatically. Each barcode is then decoded in your browser and compared with your data, and “Scannable ✓” appears only when they match.

Printing barcodes that scan first time

  • Use black or very dark bars on a white background. Red and light colours are invisible to many scanners.
  • Keep the quiet zone: the blank space on both sides of the bars, about 10 bar widths.
  • Keep bars at least 0.25 mm wide, and EAN or UPC codes between 80% and 200% of the standard size.
  • For PNG, choose the printer's resolution (300 or 600 DPI). Bars are snapped to whole pixels so every bar has the same width; the DPI is stored in the file.
  • For packaging and professional printing, use SVG or PDF, which are vector files at the exact size in millimetres.

Bulk barcodes and sticker label sheets

For a whole product range or stock list, choose Bulk and labels and upload a CSV with a data column, plus an optional type, a label (such as the product name) and a file name. Up to 1,000 rows are validated, with errors listed by row, and every barcode is scan-tested. Download PNG or SVG files in a ZIP, or a vector PDF of sticker sheets: 3×8, 3×10 or 4×10 on A4 or Letter, or your own label size, margins and gaps. Print one page with label outlines on plain paper to check the alignment before using sticker sheets.

Private by design

Everything is created in your browser. Nothing is uploaded. Product numbers, CSV files and labels never leave your device. For links, WiFi and contact details that phones can open, use the QR Code Generator; to resize a downloaded barcode image, the Image Resizer.

Features

Why Use Our Free Barcode Generator?

Accurate barcodes at their real printed size, made privately on your own device.

  • Check Digits

    Calculated for EAN, UPC, ITF-14 and ISBN, and wrong ones are flagged.

  • Scan Test

    Every barcode is decoded and compared with your data.

  • True Size

    Set the bar width in millimetres; PNG files carry their DPI.

  • Vector SVG and PDF

    Sharp at any size for packaging and professional printing.

  • Label Sheets

    3×8, 3×10, 4×10 or custom sticker sheets on A4 or Letter.

  • Bulk From CSV

    Up to 1,000 barcodes at once, with every row checked.

  • Private

    Product numbers and data never leave your browser.

  • 18 Types

    From EAN-13 and Code 128 to Data Matrix, PDF417 and Aztec.

FAQ

Frequently Asked Questions

Answers to common questions about Barcode Generator on ToolCube.

Is this barcode generator free?

Yes. Every barcode type, size option, download format, bulk creation and label sheet is free, with no sign-up and no watermark.

Can I use these barcodes to sell products in shops?

The image is a correct barcode, but retailers and marketplaces need the number itself to be registered. To sell products in stores or on marketplaces, EAN/UPC numbers must be officially registered with GS1. This tool creates the barcode image for any number you enter.

What is the difference between EAN-13 and UPC-A?

Both are retail barcodes with the same kind of bars. EAN-13 has 13 digits and is used in most countries, including Pakistan. UPC-A has 12 digits and is used mainly in the USA and Canada. Scanners in shops read both.

What is a check digit?

The last digit of an EAN, UPC, ITF-14 or ISBN is calculated from the others, so a scanner can tell when it misreads a number. Type the number without it and it is added for you; type it with the check digit and it is verified.

Which barcode should I use for my stock or inventory?

Code 128 is the usual choice for your own stock codes, asset tags and shelf labels, because it holds letters, digits and symbols in a compact barcode. Use EAN or UPC only for registered retail product numbers.

How do I make an ISBN barcode for my book?

Choose ISBN and type the ISBN-13 or ISBN-10 from your book's copyright page. An ISBN-10 is converted to ISBN-13. Type the hyphens as printed to show the ISBN line above the bars, as publishers do.

What size should a barcode be?

The standard EAN-13 is about 37 × 26 mm with 0.33 mm bars, and can be printed from 80% to 200% of that size. For your own Code 128 labels, keep bars at least 0.25 mm wide and 10 mm tall, with a clear space on both sides.

Which file format is best for printing?

SVG and PDF are vector files that stay perfectly sharp at any size, so printers and designers prefer them. PNG files carry their resolution (150, 300 or 600 DPI) and the bars are snapped to whole pixels, so they also print crisply.

Can I print barcodes on sticker labels?

Yes. Choose Bulk and labels, upload a CSV, and pick a 3×8, 3×10 or 4×10 sheet on A4 or Letter, or enter your own label size, margins and gaps. Add a product name under each barcode. Print a test page with outlines on plain paper first.

Why does my barcode not scan?

The usual causes are low contrast, bars that are too thin, a missing quiet zone, or a red or light bar colour. The scan test and warnings point these out; black bars on a white background with the default quiet zone always work best.

What are Data Matrix and PDF417?

They are 2D barcodes that hold much more data in a small area. Data Matrix is used on electronics and medicine packs, and PDF417 on ID cards and boarding passes. For links and phone scanning, a QR code is usually better.

Is my data safe?

Yes. Everything is created in your browser and nothing is uploaded, saved or logged. Your CSV files and product numbers stay on your device.