Barcode Generator

Create barcodes (CODE128, EAN, UPC, and more) in your browser

Free

Letters, numbers, symbols — general purpose

Bar width2px
Height80px

Click "Generate barcode" to preview

Works great with these tools

Need to encode a URL or long text instead of a product number? Use our free QR code generator for 2D codes that smartphones can scan.

Before embedding your barcode image on a web page, compress it for faster load times with our free image compressor.

Adding barcodes to labels or documents? Export the final document as a print-ready PDF using our free Word to PDF converter.

Frequently asked questions

Common questions people ask before using this tool.

What barcode formats are used in retail?

Common retail formats include UPC-A (North America), EAN-13 (international), and Code 128 for logistics and shipping labels. QR codes are increasingly used for digital touchpoints. Choose the format your marketplace, POS system, or distributor requires.

Can I print barcodes generated with this tool?

Yes. Download the generated PNG image and print at 300 DPI or higher. Always include quiet zones (white margins at least equal to 10× the module width) around the barcode and test scan with a phone or dedicated scanner before mass printing packaging or labels.

Do barcodes store product information directly?

Barcodes encode a number or short string that maps to product data in a database — they do not store descriptions, prices, or images inside the bars themselves. GS1 standards govern global trade item numbers (GTINs) used in retail systems worldwide.

What is the difference between 1D and 2D barcodes?

1D barcodes (CODE128, EAN-13, UPC-A) encode data in horizontal lines and are read by a laser scanner moving left to right. 2D barcodes (QR codes, Data Matrix) encode data in a 2D grid and can store much more information, readable by smartphone cameras from any angle.

How long can the encoded number or text be?

It depends on the barcode format. CODE128 supports all 128 ASCII characters with variable length. EAN-13 encodes exactly 12 digits (the 13th is a checksum). UPC-A encodes 11 digits. Entering more digits than a format supports will produce an error or invalid barcode.

Why does my barcode not scan with a phone camera?

Common reasons: the barcode is too small (minimum 25mm wide for retail scanning), the quiet zone is too narrow, the image is blurry or low DPI, or the format is not supported by the scanning app. Use a dedicated barcode scanner app rather than just the default camera for best results.

Other tools from ToolsRacks you might find useful — all free, no signup needed.

Looking for something else? Browse all 19 free tools →