FileToolsHub logo

Barcode Generator

Generate Code 128, Code 39, EAN, or UPC barcodes and download as PNG in your browser.

Processing: runs in your browser, nothing uploaded

About Barcode Generator

Shipping labels and product stickers need a linear barcode, not a QR square. Barcode Generator draws a PNG in the format you pick.

Which format accepts which text

Code 128 takes ordinary printable text and is the right default for a SKU or a ticket id. Code 39 allows letters A to Z, digits, space, and the symbols - . $ / + %. EAN-13 wants 12 digits and adds a checksum, or 13 digits if you already have the check digit. EAN-8 wants 7 or 8 digits the same way. UPC-A wants 11 or 12 digits. A wrong length or a letter in an EAN field fails with an error instead of a broken image. The hint under the value field restates the rule for the format you selected. ISBN check-digit tools are separate if you are validating a book number rather than drawing bars.

How the PNG is drawn

Bars are black on white. Each bar module is 2 pixels wide, the bars are 80 pixels tall, the font under the bars is 16 pixels, and the margin is 12 pixels. You cannot change those sizes. You can turn off the human-readable digits with “Show text under bars.” The file downloads as barcode.png. Generation runs as you type, and the button runs it again. QR Code Generator is the square-code page. Favicon Pack Generator and Meme Caption Maker do not encode product numbers.

What this tool will not do

It will not print a sheet of labels, export SVG, or look up a product database. It will not invent a valid EAN from a short name. A Code 128 of a long string becomes a wide image; the page does not wrap it. Colors are fixed, so a brand-colored bar is not an option. The value stays in this browser. Wi-Fi QR Generator is for network logins, which a linear barcode cannot express in a way phones expect.

How to use

  1. 1

    Enter a value that matches the format hint.

  2. 2

    Choose Code 128, Code 39, EAN-13, EAN-8, or UPC-A. Hide the digits if you want bars only.

  3. 3

    Download barcode.png. A bad length shows an error instead of an image.

Privacy

Barcode Generator draws the PNG on this device and does not send the value to a server.

Frequently asked questions

Which barcode formats can I generate?

Code 128, Code 39, EAN-13, EAN-8, and UPC-A. The hint under the value field shows what each format accepts.

Does EAN-13 add a check digit?

If you enter 12 digits, a checksum is added. If you enter 13, those digits are used as-is. Letters are rejected.

Can I change the bar height or color?

No. Bars are black, 80 pixels tall, on a white background. You can hide the digits under the bars.

Is a barcode the same as a QR code?

No. Use QR Code Generator for a square code that can hold a URL or a Wi-Fi login.

Browse all Image Tools · Sitemap