Skip to content
AI Web Toolbox

Images & colour

How does a barcode generator work? Formats and example

Use Barcode Generator when you need a quick way to work through this task. Create a standard 1D barcode from text or numbers. This guide walks through a small example and the checks to make before you use the result.

A barcode is a visual encoding of a value for a compatible scanner. For a shelf label or an internal inventory tag, start by deciding what the scanner should return. This page offers Code 128, Code 39, Code 93, EAN-13, EAN-8, and UPC-A. Code 128 is suitable for a short alphanumeric test value such as A123. The retail choices are numeric schemes with their own length and check-digit rules. The image is generated on the server after you enter text; it is not a product registration service. Plan the identifier and its use before printing labels.

How to use the tool

  1. Set Type to Code 128 for the sample item code.
  2. Enter A123 in Your input and wait for the barcode preview.
  3. Choose Download file, then test the PNG with the scanner you intend to use.
Open Barcode Generator

Try a small example

Example input or settings

A123 in Code 128

What to check

The preview shows vertical black bars for A123 and the PNG measures 237 × 80 pixels. Test a scan before printing: this page does not verify scanner compatibility or register an item. It creates one image at a time, with fixed bar width and height.

How do I make a barcode for an internal item code?

Enter A123 with Type set to Code 128: the tool produces a black-bar PNG 237 pixels wide and 80 pixels high. The downloaded image is barcode.png. A123 is only a test identifier; a scanner should return that same four-character value when the image is shown at a readable size. If you need an EAN or UPC instead, use the appropriate numeric identifier and check its digit requirements rather than changing the Type of this text example.

When this is useful

For a real task, replace the sample with your own input and check the output in its final context. Keep a copy of the original if the change is hard to reverse.

Before you rely on the result

Preview at the size and on the background where the result will appear. Check file format, legibility and accessibility.

Browse all guides