ToolFlow
Home›Utility Tools›Barcode Generator

Barcode Generator

Use our free Barcode Generator tool to generate barcodes in various formats. It runs in your browser — no installation, no registration, no hidden fees.

Invalid input for CODE128: Cannot read properties of null (reading 'save')

Frequently asked questions

Can I use QR codes commercially?+
Yes, generated QR codes are yours for any purpose.
Are passwords stored?+
No. Generated in your browser, never transmitted.

The Barcode Generator turns text or numbers into a barcode image that you can download as a PNG. Choose a format, enter your content, and the barcode is drawn instantly with the value printed underneath. It is handy for labels, inventory, library items, event passes and test data.

Barcodes are drawn in your browser using a barcode library, so nothing you enter is uploaded.

How to make a barcode

  1. Enter the Content for the barcode
  2. Choose a Format: CODE128, EAN-13, UPC-A, CODE39 or ITF-14
  3. Choose a Bar width: Thin, Medium or Thick
  4. Check the preview, then click Download PNG

Choosing a format

  • CODE128 encodes any text and numbers, so it is the best general-purpose choice for inventory and internal labels.
  • EAN-13 is the 13-digit code used on most retail products around the world.
  • UPC-A is the 12-digit retail code common in North America.
  • CODE39 is an older format for letters, numbers and a few symbols, still used in some industrial and ID settings.
  • ITF-14 is a numeric format used on shipping cartons and outer packaging.

If you see an error

  • Each format has rules about what it accepts. EAN-13 and UPC-A need digits only and a fixed length, and ITF-14 is numeric too. The tool shows a message such as “Invalid input for EAN13” when the content does not suit the chosen format. Switch to CODE128 for free text.

Before you print or sell

  • Creating a barcode image does not register the number. Retail EAN and UPC numbers are issued through GS1, and shops generally expect numbers you have licensed.
  • Print at a decent size with plenty of contrast, black on white works best, and leave blank space on both sides.
  • Always scan a printed sample with a phone or scanner before producing a whole batch.
Want a square code? The QR Code Generator makes QR codes for links and text.

Related tools

Frequently asked questions

Is the barcode generator free?
Yes, with no sign-up and no watermark.
Can I use these barcodes on products I sell?
The image is yours to use, but retail shops generally expect EAN or UPC numbers that have been licensed through GS1. Internal labels can use any number.
Why does it say my input is invalid?
The content does not match the chosen format, for example letters in EAN-13. Use CODE128 for text, or correct the digits.
What file do I get?
A PNG image of the barcode.
Is my content uploaded?
No. The barcode is created in your browser.

Related tools

Why ToolFlow?

100% free, no hidden costs
No account or login required
Works on any device
Fast results in seconds