Barcode Generator

Make a Code 128, EAN-13 or UPC-A barcode and download it as SVG or PNG.

Inputs stay on your device No sign-up Free to use
How this works

The tool runs in this browser. Your file or text is not uploaded to UseFreeTools. Check this tool's limits for anything it may save on your device.

Privacy details

Generate barcode controls

Barcode type

Example for Code 128. EAN-13 needs 12 or 13 digits; UPC-A needs 11 or 12.

Download format
100px

Processed in your browser. Your inputs stay on this device.

Showing an example. Edit to see your own.

How to use Barcode Generator

  1. Choose Code 128 for text or EAN-13 or UPC-A for a product number.
  2. Enter the text or digits. For EAN-13 and UPC-A, you may omit the last check digit and let the tool add it.
  3. Choose SVG or PNG. The barcode updates as you change the fields. Download and scan-test the image at the size you plan to print.

Example: Barcode Generator

Make a Code 128 label for a local stock code.

You add
Barcode type Code 128; text ABC-123; download format SVG; bar height 100 px.
You get
A downloadable barcode-code128.svg with black bars, the text ABC-123 and white quiet space beside the bars.

Options

Check digit
EAN-13 accepts 12 data digits and UPC-A accepts 11. The tool calculates the final digit; if you supply it, the page checks it before drawing.
Output file
SVG keeps sharp bars when resized. PNG records a fixed pixel image. Test the actual downloaded file with the scanner and printing process you will use.

Supported inputs and limits

Code 128 accepts 1–80 printable ASCII characters. EAN-13 accepts 12 or 13 digits; UPC-A accepts 11 or 12. The bar height is limited to 60–180 pixels. This page encodes and draws a number; it does not issue a licensed GS1 company prefix or verify that a product number belongs to you. Print scaling, contrast, quiet space and the scanner can affect readability, so scan-test the downloaded result. Content stays in this browser.

Where your input is processed

This tool processes your input in this browser. Your text and files are not uploaded to UseFreeTools. Check this tool's limits for anything it may save on your device.

What the image proves

The image records the entered characters in a barcode pattern. EAN-13 and UPC-A include a check digit that catches many typing errors; a valid check digit does not show who owns the number. The barcode is made locally. For retail product identification, obtain numbers through the appropriate issuing process and test them with the intended scanner before printing labels.

GS1 US, How to Create a Barcode (checked 2026-09-28)

Questions about Barcode Generator

Can this page give me an official retail product number?

No. It only draws the number you enter and checks the EAN/UPC digit. It does not assign a GS1 prefix or establish ownership of a retail identifier.

Why was my EAN or UPC number rejected?

The supplied final digit must match the checksum calculated from the preceding digits. Remove that digit to have the tool add the expected one, or correct the number.

Should I download SVG or PNG?

SVG scales without losing bar edges. PNG may be convenient for software that needs a raster image. In either case, scan-test the exported file at its final printed size.

Can Code 128 contain letters?

Yes. This page accepts printable ASCII letters, digits and punctuation in Code 128, up to 80 characters.

Project manager: Tony Hines · Content updated 29 September 2026 · Report a problem