UPC and EAN barcode generator

Make a barcode that prints right: the GS1 size, the quiet zones, the digits and the press gain, as a file the printer can use.

Type the number you own, pick a size and download a vector barcode at the exact GS1 dimensions, quiet zones included. Place it at 100% and leave it alone.

Barcode

The 12-digit US and Canada retail code.

Number

The number must come from a GS1 company prefix you license (GS1 US in the United States). The example is not assigned to anyone.

Size and colour

100% is GS1's standard size. Retail codes run from 80% to 200%.

Press settings bar width, bar height, marks

Reduction takes this much off every bar to allow for ink spread. Ask the printer for their figure; 0 if you have none. Shorten the bars only when the pack has no room.

Final size

    Drawn to scale. The digits are outlined, so there is no font to install.

    The PDF, SVG and EPS are vector and exactly the size above, one colour, no background. Place at 100% and do not scale. The PNG is transparent.

    Runs in your browser; nothing is uploaded and there is nothing to sign up for. This draws the barcode for a number you already hold. It does not sell, assign or look up numbers. Ink, the material and the press change a printed code, so have the printed proof graded with an ISO/IEC 15416 verifier before a big run.

    Put this tool on your own site

    Free to use on a portfolio, blog or client portal. Paste this where the tool should appear.

    Questions

    Do I need to buy a number before I make a barcode?

    For anything sold in shops, yes. Retailers expect a number from a GS1 company prefix, which you license from GS1 (GS1 US in the United States). A number made up, copied from another product or bought from a reseller can clash with someone else's, and retailers and marketplaces can reject it. This tool draws the barcode for a number you already own. It does not sell or assign numbers, and the example number in the box belongs to nobody.

    What size should a UPC be?

    At 100% a UPC-A or EAN-13 is 37.29 × 25.93 mm including its quiet zones, with 0.330 mm bars. GS1 allows 80% to 200% for codes scanned at the till, so the smallest is 29.83 × 20.74 mm. Bigger is easier to scan, so use the largest size the pack can hold. Cutting the bars shorter is a last resort for packs with no room.

    What is bar width reduction?

    Ink spreads on press, so printed bars come out wider than the file and the gaps close. Bar width reduction makes each bar a little thinner in the file so it prints at the right width. How much depends on the press and the material, so ask the printer for the figure. Leave it at zero when you do not have one.

    Which colours can I print a barcode in?

    Scanners look with red light, so red, orange and yellow bars disappear against white. Black is the safe choice. Dark blue, dark green and dark brown on a white or very pale background also work. When the bars are not black, check the printed proof with a verifier.

    Why a PDF or SVG instead of a PNG?

    A PNG is a grid of pixels, so a low-resolution one has bars of uneven width and blurs when it is scaled. A vector file stays sharp at any size and holds the GS1 dimensions exactly, so place it at 100% and do not resize it. The PNG here is there for mock-ups and Word documents, and it is drawn on whole pixels at the dpi you pick.

    Sources

    Checked against these on November 25, 2026.

    Chat