Back to blog list
· Updated ·eazydocument

How to turn text into a barcode: CODE 128, EAN and UPC

Utility ToolsBarcodes

Create a barcode from text

Open the barcode generator, choose CODE 128, and enter a value such as ABC-123. Generate the image, check the preview, and download the PNG. You can adjust the bar width, height and colors and choose whether to show the value below the bars.

CODE 128 supports compatible letters, numbers and symbols. It is useful for labels and internal inventory values; not every barcode format supports arbitrary text.

Choose the right format

EAN-13 and UPC-A are numeric product barcode formats, while CODE 128 is often used for logistics and internal labels. The generator accepts 12 digits for an EAN-13 check digit calculation or a valid 13-digit value; UPC-A accepts 11 digits or a valid 12-digit value.

Generating a barcode image does not register a product or assign a globally unique identifier. If a retailer or marketplace requires a registered identifier, check its requirements and obtain the appropriate number before generating the image.

Make the downloaded barcode scannable

Use dark bars on a light background, preserve clear space on both sides, and avoid stretching the image unevenly. Print a sample at the final size and test it with the scanner or software that will be used.

If a code fails, check the selected format, allowed characters and check digit, then inspect print resolution, contrast and surrounding whitespace. Requirements depend on the format and use case.

Barcode or QR code?

A linear barcode is useful when your workflow expects a specific barcode format and a short identifier. A QR code is a different, two-dimensional format that can hold other data such as a URL. Choose the format your scanner and workflow support.