Make a Barcode Free — CODE128, EAN13, UPC

What a barcode is and when you need one

A barcode is a pattern of dark bars and light spaces that encodes a short piece of information — usually a number, sometimes text — in a form a scanner can read quickly and reliably. Shops use them on products, warehouses use them on shelves and boxes, libraries use them on books, and small sellers use them on packages and labels. The point is always the same: instead of typing a long number by hand, with all the mistakes that invites, a scanner reads it in a fraction of a second and gets it right.

You need a barcode whenever something will be scanned more than a few times, or by someone other than you. A product going into a shop, a parcel going through a shipping system, stock going onto shelves, or tickets and passes that will be checked at a door are all cases where a printed barcode beats a handwritten number. Even for a small operation, a barcode makes stock-taking faster and less error-prone: scan the item, and the system knows what it is, without anyone having to read and type a code.

Choosing the right format is the one decision that matters before you generate anything, and it is simpler than it looks. CODE128 is the general-purpose choice: it accepts any text, including letters, so it suits internal labels, asset tags, and anything that is not going through a retail checkout. EAN13 is the retail standard for products sold internationally, and UPC is its counterpart for products sold in North America. If your product will be scanned at a retail till, use the format that till expects; if the barcode is for your own shelves, your own stock, or your own system, CODE128 will almost always do the job.

Use ToolPilot Pro's own free tool first

The quickest way to do this task is with ToolPilot Pro's own free tool, the Free Barcode Generator. It is built by ToolPilot Pro, it is free to use, and it needs no account and no sign-up. Everything runs in your browser, so nothing you type travels to a server.

Here is how it works, step by step:

  1. Type the text or number to encode.
  2. Pick a format — CODE128 for any text, EAN13 for retail products, UPC for North America.
  3. Adjust size, generate, and download the barcode as a PNG.

Before you print a batch, test one barcode first. Print a single label at the size you plan to use, and scan it with the scanner or phone app that will actually read it in real life. That one test catches the two most common problems: a barcode printed too small for the scanner to read, and a barcode printed with poor contrast, for example dark bars on a coloured background instead of dark on white. A barcode that scans cleanly once, at real size, will scan cleanly a thousand times; a barcode that only almost scans will fail at the worst possible moment, usually when a queue is waiting.

Size and contrast deserve emphasis because they are the usual reason a scanner struggles, and neither is a fault in the barcode itself. Keep the bars dark on white, keep the barcode at least a few centimetres wide, and do not stretch it out of proportion to fit a label — squashing or stretching the bars can make an otherwise perfect code unreadable. If space is tight, shrink the whole barcode proportionally rather than squeezing it sideways.

The full guide: what it covers

If you want more than the quick version, read the full guide: Barcode Generator Guide. The guide goes deeper into the same task, covering how each format works, how to choose between them for your particular use, and how to avoid the printing mistakes that make barcodes fail. It is the right next step when you are setting up barcodes for a shop, a stockroom, or a product line, and you want to get the format and the print right the first time.

The guide is also useful as a reference when something goes wrong. If a barcode is rejected, the guide's explanations of digit counts and format rules help you work out whether the problem is the number you entered, the format you picked, or the way it was printed — three very different problems with three very different fixes.

Honest limits

The tool's own answers set the expectations plainly, and this page repeats them. EAN13 needs exactly 12 or 13 digits — letters or the wrong digit count are rejected, and the tool tells you why instead of producing a broken barcode. That rejection is a feature, not a bug: a barcode that looks right but encodes the wrong data is worse than no barcode at all, because it fails silently at the till or in the warehouse. If your EAN13 code is rejected, count the digits first; that is the cause in almost every case.

Similarly, barcodes are scannable when printed at a reasonable size with good contrast, and tiny or low-contrast prints are the usual reason a scanner struggles. The tool cannot control your printer, your label stock, or the lighting at the till, so the final responsibility for a readable print sits with you. Print one, scan it, and only then print the rest. That habit turns an avoidable failure into a non-event.

Your privacy

Nothing you type leaves your browser. Barcodes are generated entirely on your device from the text you enter, so product codes, internal stock numbers, and asset identifiers are never uploaded to a server. That matters for internal codes you would rather not share, and it means there is no account, no history, and no record of what you generated once you close the page.

Frequently asked questions

Which format should I use?

CODE128 for general labels and anything with letters — it accepts any text. EAN13 for retail products sold internationally (13 digits). UPC for products sold in North America (12 digits).

Why did my EAN13 barcode fail?

EAN13 needs exactly 12 or 13 digits — letters or the wrong digit count are rejected, and the tool tells you why instead of producing a broken barcode.

Are the barcodes scannable?

Yes, when printed at a reasonable size with good contrast. Tiny or low-contrast prints are the usual reason a scanner struggles — keep the bars dark on white and at least a few centimetres wide.

Is anything uploaded?

No. Barcodes are generated entirely in your browser from the text you type.

Related ToolPilot Pro tools and guides

If this task is part of a bigger labelling or small-business workflow, these ToolPilot Pro tools and guides sit alongside it. The QR Code Generator makes codes that link to a web page or a piece of text, which suits a different job from a barcode: a barcode identifies an item, while a QR code usually points somewhere. The Business Card Maker designs the card that a barcode might sit alongside on packaging or a stall. For reading more, the guide How to Make a QR Code Free covers QR codes in depth, and Best AI Tools for Small Business covers the wider toolkit for sellers and shop owners.