Create a Code 128 barcode for inventory identifiers, stock labels and internal shipping references. Enter a suitable value, inspect the generated preview and save an SVG or PNG image. The tool is free to use without creating an account.

FREE ONLINE TOOL No account required

Code 128 Barcode Generator

Alphanumeric inventory and shipping barcodes

When to use Code 128

Code 128 encodes letters, numbers and many common symbols in a compact linear barcode. It suits internal references such as warehouse locations, order numbers and mixed product SKUs when your software expects Code 128. The text you choose still needs a matching record in your inventory system. A scanner reads the encoded value; it does not learn a product name, price or stock balance from the bars alone.

Input rules and supported data

Enter the identifier exactly as your system stores it. Preserve leading zeros, punctuation and letter case because these can distinguish separate records. Use ordinary ASCII text for this tool. The renderer handles the symbol checksum, so you do not add a retail UPC check digit to an alphanumeric SKU. For structured GS1 application identifiers, use the dedicated GS1-128 generator rather than treating the field as plain Code 128.

How to create your Code 128 image

  1. Copy the intended identifier or text into the input field, keeping meaningful zeros and punctuation.
  2. Choose a scale appropriate for a clear preview. For linear formats, choose the bar height as well.
  3. Select the generate button and read any input message before using the displayed image.
  4. Download the result and check the decoded contents with equipment that supports this barcode format.

Worked example

Example input: SKU-2026-A17. This example contains letters, numbers and hyphens. A successful scan should return SKU-2026-A17 exactly. Change the sample to a real internal identifier before using the label. Keeping an example value on multiple products would make those products indistinguishable to a scanner.

Choosing SVG, PNG or a printed copy

Choose SVG when placing the image into a design or print workflow that accepts vector artwork. Choose PNG for software that expects a raster image. Keep the complete symbol and its surrounding clear area in either format. The readable caption is useful for a person checking the label, but the scanner reads the encoded pattern. After changing the input, generate a fresh image rather than reusing an earlier download.

Preserve the proportions of the bars and spaces, and leave the clear margins at both ends intact. Do not stretch the width independently or crop the symbol to fit a smaller label. Test a sample at the actual printed size on the intended material. Printer resolution, contrast, surface texture and the scanner’s working distance can affect a physical scan.

Troubleshooting this format

If the result is too wide, shorten the underlying identifier where your system permits it, or provide a wider label. Do not squeeze the artwork horizontally until individual bars merge. If your scanner returns the right text but your application finds no record, check the inventory database and any scanner prefix or suffix settings.

Frequently asked questions

Does Code 128 need a separate checksum digit?

The renderer adds the Code 128 symbol checksum. This is different from a GTIN check digit, and you should not append an invented retail checksum to an ordinary SKU.

Can Code 128 contain lowercase letters?

Yes, Code 128 can encode lowercase and uppercase ASCII letters. Check the decoded value carefully because your receiving software may treat different letter cases as different identifiers.

Is ordinary Code 128 the same as GS1-128?

GS1-128 uses Code 128 with additional structure, including application identifiers. Use the GS1-128 tool when a receiving workflow explicitly requires that structure.

Data handling and related tools

Barcode rendering happens in your browser after the required rendering library loads. The website and its content delivery providers still receive normal page requests, so this is not a claim that the whole website has no network activity. Avoid confidential test data and review the privacy policy for service details.

Use the barcode scanner to check supported images, or browse the complete barcode tool directory for a different format. For technical encoder information, see the BWIPP symbology reference.