Free online tool

Free Online Barcode Generator

Make barcodes for labels, tickets and inventory in six formats, with automatic check digits, and download them as PNG or SVG.

Barcode GeneratorFree online tool. Runs in your browser.
Live

Barcodes are everywhere: on groceries, parcels, library books, tickets and warehouse shelves. A barcode is a machine-readable way of writing a number or short text with bars, so that a scanner can read it in a fraction of a second. This generator creates barcodes in six common formats, adds the check digit for you where needed and lets you download them as sharp images.

Which barcode should I use?

Format Holds Typical use
Code 128 Any text of keyboard characters Shipping, inventory, general labels
Code 39 Capitals, digits and a few symbols Older systems, ID cards
EAN-13 13 digits Retail products worldwide
EAN-8 8 digits Small packages
UPC-A 12 digits Retail products in North America
ITF-14 14 digits Cartons and cases

If you only need to label your own things, Code 128 is the best choice. It is compact, handles letters and digits and is read by almost every scanner. The retail formats are for products sold through shops, and they come with rules, explained below.

How to use it

  1. Choose the barcode type. A sample value appears.
  2. Type your own value. The tool tells you straight away if it does not fit the format.
  3. Adjust the bar width and height. Thicker bars scan more easily from a distance.
  4. Choose whether to show the number under the bars.
  5. Download a PNG for documents and screens, an SVG for print at any size, or use Print.

Check digits explained

Retail barcodes end with a check digit that lets a scanner detect a misread. It is calculated from the other digits. Starting from the right of the data digits, each digit is multiplied alternately by 3 and 1, the results are added and the check digit is whatever must be added to reach the next multiple of ten.

For the EAN-13 data 590123412345, the digits from the right are 5, 4, 3, 2, 1, 4, 3, 2, 1, 0, 9, 5. Multiplying alternately by 3 and 1 gives 15, 4, 9, 2, 3, 4, 9, 2, 3, 0, 27 and 5. They add up to 83. The next multiple of ten is 90, so the check digit is 7, and the full code is 5901234123457. The same rule gives 2 for the UPC-A data 03600029145, and 4 for the EAN-8 data 9638507. If you type the number without its check digit, the tool adds it and tells you. If you type all the digits and the last one is wrong, it tells you what it should be.

How we know the codes are correct

A barcode that looks right can still fail. We checked each of the six formats by creating a barcode with the tool, saving the PNG and reading it back with an independent barcode reading library. In every case the decoded value matched what we had typed: SKILLS-2026 for Code 128 and Code 39, 5901234123457 for EAN-13, 96385074 for EAN-8, 036000291452 for UPC-A and 12345678901231 for ITF-14. UPC-A is read by some scanners as an EAN-13 with a leading zero, which is normal and means the same thing. The rendering is done by a well-known open-source library, JsBarcode.

A note on shop barcodes

You can make a barcode image for any valid number, but the numbers on products sold in shops are not free-for-all. Retail numbers come from a global system run by GS1, and the first digits identify the company that holds the number. To sell products through retailers, you normally need to register with GS1 or your country’s numbering organisation and receive numbers. A barcode you invent might clash with a real product, and a shop’s system may refuse it. For internal labels, use Code 128, which has no such rules.

  • Print at a good size. A barcode that is too small, especially in height, will not scan reliably. Use the width and height sliders.
  • Keep a quiet zone. The tool adds white margins. Do not crop them off.
  • Use dark bars on a light background. Black on white is best.
  • Do not stretch the image. Resize it in proportion, or use the SVG.
  • Test every label. Scan one printed copy with your actual scanner or a phone app before you print a batch.
  • Avoid curved or glossy surfaces that catch the light.

Common mistakes

  • Using lower-case letters in Code 39, which only allows capitals.
  • Entering 13 digits for EAN-13 with a wrong check digit.
  • Printing a tiny barcode on a label that has to be scanned from a distance.
  • Using a retail format for internal items and then wondering why a shop system rejects it.
  • Not testing the printed result.

Privacy and limits

The barcodes are drawn in your browser, by a library that runs on your device and is loaded from the same site as the page. The values you type are not uploaded or stored. Code 128 values are limited to 80 standard keyboard characters, and Code 39 to 40 characters. The tool does not create two-dimensional codes such as QR codes; use the QR code generator for those. This tool makes images only, and does not register numbers or guarantee that a particular scanner will accept them.

Put your barcodes on labels you design in Canva for beginners, or on documents made with the invoice generator. If you sell products, the selling on Etsy course and the starting a business course cover the practical side.

Key takeaways

  • Code 128 suits any internal labelling; retail formats follow GS1 rules.
  • The check digit comes from weights of 3 and 1 and catches misreads.
  • All six formats here were decoded back correctly in testing.
  • Print large enough, keep the margins and test a real scan.

Questions

Which barcode type should I choose?

For labels, inventory and shipping that you manage yourself, choose Code 128, which holds any keyboard text and is read by nearly all scanners. Choose EAN-13, EAN-8 or UPC-A only for retail products using official numbers. Code 39 suits older systems, and ITF-14 is for cartons and cases.

What is a check digit and does the tool add it?

A check digit is the last digit of a retail barcode, calculated from the others so scanners can detect a misread. For EAN, UPC and ITF codes, the tool adds it if you type the number without it, and tells you the correct digit if you type one that is wrong.

Can I use these barcodes on products I sell in shops?

Not unless the numbers are valid. Retail numbers are issued through GS1 or your country's numbering organisation, and shops expect them to be registered. This tool creates images for numbers you provide, but cannot issue or register numbers. For internal use, Code 128 has no such restrictions.

Why does my barcode not scan?

Common causes are printing it too small, cropping the white margins, a low-contrast or glossy surface, stretching the image or choosing a type the scanner does not read. Increase the bar width and height, print dark bars on a light background and test a printed copy before you make many.

Are the barcodes made on my device?

Yes. A small open-source library, loaded from the same site as the page, draws the barcode in your browser. The value you enter is not uploaded or stored. You can download the result as a PNG for documents or as an SVG that stays sharp at any print size.