Barcodes & labels

UPC barcode generator

Make a UPC-A barcode from your 11 or 12-digit number, or a short UPC-E for small packs. The check digit is handled for you, and the label prints at the right size on a 2 × 1 inch label or a sheet.

In: Typed code · Excel or CSV listOut: PDF · PNG · SVG · ZPL

Type the barcode and label text

Nothing uploaded · Works offline · Check it yourself

Choose the label size, check the preview and download

Units
More settings: barcode size, bar height, text size, printer

Your label appears here as you type.

Shaded: the quiet zone, the blank margin a scanner needs. Dashed line: the label edge. Neither is printed.

    Printing the PDF: each page is exactly one label.
    • In the print dialog choose Actual size or a scale of 100%, not “Fit to page”.
    • On a label printer, set the paper size in the printer settings to the label size.

    This tool draws UPC barcodes. UPC numbers come from GS1 US or GS1 Canada — see where UPC numbers come from.

    Something not working? Report a problem (opens your email app). Please don’t attach your file.

    How a UPC-A number is built

    A UPC-A number has 12 digits. The first digits are the company prefix GS1 assigned to the brand owner — its length varies with how many products the company needs to number — then the item reference the company assigns to each product, and finally a check digit calculated from the first 11. Under the bars, the first and last digits are printed smaller, outside the bars, and the bars for those two digits are drawn taller, like the guard bars at the edges and in the middle.

    Type 11 digits and the tool adds the check digit; type all 12 and it checks the last one. If the check digit doesn’t match, the tool shows the digit it expected instead of changing your number, because the mistake is usually elsewhere: a swapped or mistyped digit.

    UPC-A barcode for 036000291452 on a 2 by 1 inch label with the product name Hand Soap Refill 1L and the price $4.99
    A UPC-A label on a 2 × 1 inch label: the first and last digits are printed smaller, outside the bars.

    UPC-E: the short version for small packs

    UPC-E squeezes certain UPC-A numbers into 6 digits plus a number-system digit and a check digit, for packs too small for a full UPC-A — a lip balm or a pack of gum. Only numbers with a run of zeros in particular places can be shortened, so you can’t choose any UPC-E you like: it comes from a UPC-A that qualifies.

    • Type the 12-digit UPC-A and choose UPC-E: if it can be shortened, the tool shows the UPC-E version; if not, it tells you to use UPC-A.
    • Or type the 6, 7 or 8-digit UPC-E directly.

    Scanners expand a UPC-E back to the full UPC-A, so both point at the same product record.

    UPC-E barcode for 04252614 on a 38 by 25 mm label with the name Lip Balm
    UPC-E 04252614 on a 38 × 25 mm label: six digits between a number-system digit and the check digit.

    Label sizes that work for UPC-A

    At standard size (100%) a UPC-A is 37.29 mm (1.47 in) wide including the blank margin each side, and GS1 allows 80% to 200% for checkout scanning. Common choices:

    UPC-A on common US label sizes
    LabelTypical useHow the barcode fits
    2 × 1 in (thermal)Product and shelf labelsWider than standard; bars are shortened when a name and price are added
    2⅝ × 1 in (Avery 5160 size, 30 per sheet)Office printersPlenty of width; bars shortened with text
    1¾ × ½ in (Avery 5167 size, 80 per sheet)Small itemsTight: works without a name, and the preview warns if it drops below 80%
    4 × 6 inShipping labels and large signsFull height at up to 200%

    The preview shows your exact size in percent. For the sheet layouts, use the Avery 5160 barcode labels page or the “Many labels” tab.

    UPC or EAN?

    A UPC-A is an EAN-13 that starts with 0, and checkout scanners worldwide read both. US and Canadian companies are usually given UPC numbers; elsewhere GS1 issues EAN-13. If a retailer outside North America asks for an EAN-13 and you have a UPC, put a 0 in front — the EAN-13 barcode generator does this for you. The full story is in EAN vs UPC: what’s the difference?

    Where UPC numbers come from

    In the US, UPC numbers come from GS1 US; in Canada, from GS1 Canada. Numbers sold cheaply by resellers are often old numbers first licensed to another company, so the GS1 record won’t show your brand — a problem with retailers and marketplaces that check. The GS1 guide explains the options. For stock that never leaves your business, use Code 128 with your own SKU instead.

    How your data stays private

    • Your browser does the work. Barcodes, previews and every download are made by code running in this page, on your own device. Spreadsheets are read in the page too.
    • Nothing is sent to a server. Your numbers, product names, prices and files are never uploaded, to us or to anyone else. The page also loads Google Analytics and Google ads; useme4’s code never passes what you type or open to them.
    • Only layout settings are remembered. Your browser keeps the label size, units, text size, printer resolution and alignment you last used, so the page opens the same way next time. Product details are never stored.

    You can check this yourself: how to verify that nothing leaves your browser.

    What this tool can’t do

    • Give you UPC numbers. It draws barcodes for numbers you already have.
    • Shorten every UPC-A to UPC-E. Only qualifying numbers can be shortened; the tool tells you when one can’t.
    • Add-on codes. The 2- and 5-digit add-ons used on magazines aren’t supported.
    • Non-Latin text in the PDF. Names print in English and Western European characters only; others print as “?” with a warning.

    Frequently asked questions

    How many digits is a UPC code?

    A UPC-A has 12 digits: 11 that identify the company and product, plus a check digit. Type 11 and the tool adds the check digit.

    What is UPC-E?

    A shortened UPC for small packs. Only some UPC-A numbers, with zeros in particular places, can be shortened. Type the 12-digit UPC-A with UPC-E selected and the tool shows whether it can be.

    Is a UPC the same as an EAN?

    Almost: a UPC-A with a 0 in front is an EAN-13 for the same product, and scanners read both.

    Can I print UPC labels on Avery sheets?

    Yes. Use the “Many labels” tab and choose the Avery 5160 size (30 per sheet) or another sheet, then print the test page first to check alignment.

    What size should a UPC barcode be?

    At standard size it is 37.29 mm (1.47 in) wide including margins. GS1 allows 80% to 200% of that for checkout scanning; the preview shows your percentage.

    Can I make a UPC barcode without buying a number?

    You can draw a barcode for any valid number, but to sell in stores the number must be licensed to your company by GS1. For internal use, Code 128 with your own code is the better choice.