Barcode Generator

Runs in your browser — your data is never uploaded.

A barcode is not a picture of a number — it is a number plus a checksum, and the checksum is how a scanner decides it read the bars correctly. Get it wrong and the symbol does not scan slightly wrong, it does not scan at all, which you discover at a till or on a pallet of labels that has already shipped. This computes the check digit for EAN-13, UPC-A and Code 128, keeps the quiet zones that most generators crop away, and gives you vector SVG so the bars stay sharp at any size. It all happens in your browser.

How to use Barcode Generator

  1. 1

    Pick the symbology. Code 128 takes any text; EAN-13 and UPC-A are the retail ones and take digits only.

  2. 2

    Type the data. Leave off the final check digit — it is calculated and appended for you, and verified if you do include it.

  3. 3

    Download SVG for print, PNG for the web, or a printable sheet of copies for label stock.

Share

Embed this tool on your site

Paste this where you want the tool to appear. It runs entirely in your visitor's browser — no uploads, no account, no tracking.

Please keep the attribution line — it's what keeps these tools free.

Need a different size, a dark theme, or a different tool? Build an embed lets you preview it first.

Frequently asked questions

Do I type the check digit myself?+

No. Enter the 12 digits of an EAN-13 or the 11 of a UPC-A and the last one is computed and appended. If you do paste a full number, it is checked rather than overwritten — a mismatch means your source data is wrong, and quietly "fixing" it would print a thousand labels for the wrong product.

Why is there white space around the barcode?+

That is the quiet zone, and it is part of the barcode rather than padding around it. A scanner needs clear space either side to find where the symbol starts and stops, so a symbol cropped tight to its first and last bar is unscannable however perfect the encoding. It is the most common reason a "correctly generated" barcode fails in the real world, which is why this tool will not let you crop it off.

Which symbology should I use?+

Code 128 for anything internal — SKUs, asset tags, shipping references — because it takes letters as well as digits and packs digits densely. EAN-13 for retail products outside North America, UPC-A for retail inside it. Code 39 is older and less dense, but some legacy warehouse systems still expect it.

SVG or PNG?+

SVG for anything printed. It is vector, so the bars stay geometrically exact at any size, and bar width accuracy is exactly what a scanner measures. Use PNG only when something downstream cannot take an SVG — and if you do, print it large rather than scaling it up, because a blurred edge is a misread bar.

Can I get a whole sheet of the same barcode?+

Yes — choose the printable sheet and set how many copies. It lays them out on US Letter without distorting the symbol, because stretching a barcode changes its module widths and stops it scanning. For addresses and other text on label stock, use the label sheet maker instead.

Is my data uploaded?+

No. The encoding and the drawing both happen in your browser. Barcodes usually carry product codes, order numbers or asset tags, and there is no reason for a website to collect a list of them.