About Contact
Tools
1 Rep Max Calculator — Estimate Your 1RM From Any Set401(k) CalculatorAge Calculator — Your Exact Age in Years, Months & DaysAmortization CalculatorAsphalt CalculatorAsphalt Driveway Cost CalculatorAuto Loan CalculatorBarcode GeneratorBase64 EncoderBd Ft CalculatorBench Press Max Calculator — Estimate Your Bench 1RMBMR Calculator — Estimate Your Basal Metabolic RateBoard Foot CalculatorBrick CalculatorCalorie Deficit Calculator — Daily Target and TimelineCD Calculator (Certificate of Deposit)Cement CalculatorCircle Area Calculator — Area, Radius, Diameter, CircumferenceColor Palette GeneratorCompound Interest CalculatorConcrete Bag CalculatorConcrete Block CalculatorConcrete CalculatorConcrete Calculator with CostConcrete Footing CalculatorConcrete Mix CalculatorConcrete Pad CalculatorConcrete Price CalculatorConcrete Slab CalculatorConcrete Slab Cost CalculatorConcrete Volume CalculatorConcrete Weight CalculatorConcrete Yard CalculatorConduit Fill CalculatorCrushed Stone CalculatorDirt CalculatorDrywall CalculatorDue Date Calculator — Estimate Your Baby's Due DateFantasy Name GeneratorFavicon GeneratorFence CalculatorFill Dirt CalculatorFinal Exam Calculator — What Grade Do I Need on the Final?Fraction Calculator — Add, Subtract, Multiply, DivideFree Citation Generator (APA, MLA, Chicago, Harvard)GPA Calculator — Unweighted and Weighted, with Cumulative GPAGravel CalculatorHEIC to JPG ConverterHELOC CalculatorInsulation CalculatorLandscape Rock CalculatorMacro Calculator — Daily Protein, Carbs, and FatMean Calculator — Average of a List of NumbersMedian Calculator — Middle Value of a List of NumbersMeme GeneratorMetal Roof CalculatorMinute to Decimal ConverterMorse Code ConverterMortgage Payoff CalculatorMulch CalculatorOvulation Calculator — Find Your Fertile WindowPaver Base CalculatorPaver CalculatorPaver Sand CalculatorPea Gravel CalculatorPeptide CalculatorPercentage Calculator — Solve Any Percent QuestionPNG to PDF ConverterPuppy Weight CalculatorPythagorean Theorem Calculator — Solve Any Right TriangleQuadratic Formula Calculator — Roots, Vertex, Factored FormQuikrete Concrete CalculatorRaised Bed Soil CalculatorRandom Name GeneratorRiver Rock CalculatorRock CalculatorRoof Cost CalculatorRoof Pitch CalculatorRoof Shingle CalculatorRoof Slope CalculatorRoof Truss CalculatorRubik's Cube Solver — Solve Any Scrambled 3×3 CubeSakrete Concrete CalculatorSales Tax CalculatorSand CalculatorScrap Silver CalculatorSignature GeneratorSleep Calculator — Best Bedtimes & Wake Times by Sleep CycleSlope Calculator — Slope, Equation, Angle, GradeSnow Day CalculatorSod CalculatorSoil CalculatorSonotube Concrete CalculatorSquare Footage Calculator — Room and Floor AreaSquat Max Calculator — Estimate Your Squat 1RMStandard Deviation Calculator — Sample and PopulationStone CalculatorTDEE Calculator — Total Daily Energy ExpenditureTier List MakerTile CalculatorTime Calculator for WorkTop Soil CalculatorTopsoil CalculatorTriangle Calculator — Solve Any Triangle From 3 InputsUPC GeneratorUsername GeneratorVolume Calculator — 8 Shapes With Unit ConversionWebP to JPG ConverterWebP to PNG ConverterWordle Solver — Best Next Guess for Today's Puzzle
← All tools

UPC Generator

Generate a UPC-A barcode from any 11 or 12 digit number — runs in your browser.

Check digit valid ✓

Generates the barcode image for any 12-digit number. UPCs for retail sale must be assigned by GS1 — see FAQ.

Display options

Everything runs in your browser. Nothing is uploaded.

What is upc generator?

A UPC-A barcode is the 12-digit black-bar-and-white-space pattern you see on virtually every retail product sold in the United States and Canada. It encodes a number the cash register reads optically — not the price, but a unique identifier that the store’s database maps to a price, name, and product description.

This tool draws the barcode visual for any 12-digit number you give it. Type 11 digits and we’ll compute the 12th (the check digit) and append it; type 12 and we’ll validate it and offer to correct it if the last digit is wrong. Download the result as a PNG (for screenshots, listings, and quick image embedding) or an SVG (for design tools and lossless scaling).

Everything runs in your browser — the number you type never leaves your device. There’s no upload, no server, no account.

What this tool does not do: assign UPC numbers. To list products on Amazon, Walmart, or eBay, the UPC has to come from a 6- to 10-digit company prefix issued to you by GS1. This tool happily renders the barcode for those GS1-issued codes — and for any other number you want to encode for internal warehouse, testing, or design-mockup use — but it doesn’t sell or register prefixes. See the FAQ below for the full picture.

When to use a upc generator

  • Indie sellers — Render the barcode image for a UPC you already own (issued by GS1) so you can drop it onto an Etsy or Amazon listing photo.
  • Designers and packaging mockups — Place a real-looking UPC-A barcode on comp art and packaging proofs before manufacturing — at full 1.469″ × 1.020″ canonical size.
  • Internal warehouse and inventory — Generate barcodes from in-house SKU numbers for non-retail tracking, picking workflows, or asset tagging where GS1 registration isn't required.

How to use the UPC Generator

  1. Enter your numberType 11 or 12 digits in the input. We'll compute the check digit if you give us 11, or validate it if you give us 12.
  2. Choose what to showToggle 'Show digits below bars' off for a clean rendering. Toggle 'Transparent background' on if you're layering the barcode on a packaging mockup.
  3. DownloadClick PNG (1×, 2×, or 4× of the canonical 440×306 print size) or SVG (vector — scales to any size without quality loss).

Worked examples

Coca-Cola test UPC (12 digits, valid check)

Input:  036000291452
Output: Standard UPC-A barcode with check digit valid ✓

Auto check digit (11 digits in)

Input:  03600029145
Output: Same barcode, with badge: Check digit added: 2

Mismatch correction

Input:  036000291455
Output: Warning: Check digit 5 doesn't match — should be 2. Choose [Use corrected] or [Use as entered].

Frequently asked questions

What's the difference between a UPC and a GS1-issued UPC?
Any 12-digit number can be drawn as a UPC-A barcode — that's pure encoding math. A GS1-issued UPC is one whose 6- to 10-digit company prefix has been assigned to your business by GS1, the global standards body that licenses prefixes. This tool generates the visual barcode for any number you enter; it does not assign or register prefixes. Need EAN-13, Code 128, or other formats? Use the multi-format barcode generator.
Can I use a UPC generated here to sell on Amazon, Walmart, or eBay?
Only if you already own the GS1 prefix the number is built on. Amazon and Walmart both require GS1-issued UPCs (Amazon checks them against the GS1 GEPIR registry), and they will reject listings that use unassigned numbers. Renderings from this tool are valid barcodes — they will scan correctly — but they don't grant rights to a UPC you haven't been assigned.
How is the UPC check digit calculated?
It's a Modulo 10 checksum. Take the first 11 digits. Multiply the digits at odd 1-indexed positions (1, 3, 5, 7, 9, 11) by 3 and sum them. Sum the digits at even 1-indexed positions (2, 4, 6, 8, 10). Add the two sums and take the result mod 10. Subtract from 10, then take mod 10 again. The result is the check digit. Example for 03600029145: (0+6+0+2+1+5)×3 + (3+0+0+9+4) = 42 + 16 = 58. 58 mod 10 = 8. (10 − 8) mod 10 = 2.
What if I only have 11 digits?
Type the 11 digits and the tool computes and appends the check digit for you. The status panel shows which digit was added. This is the path most people use — the 11-digit portion is the company-prefix-plus-product-code that you'd hand-write or paste from your records, and the check digit is mechanical.
Why are the first and last digits outside the bar block?
That's the canonical UPC-A layout, defined by the GS1 General Specifications. The first digit (called the number system digit) is positioned to the left of the bar block, in the left quiet zone. The last (check) digit floats to the right, in the right quiet zone. The middle 10 digits are split 5+5 under the left and right halves of the bar block, separated visually by the central guard pattern. Many free UPC generators ignore this and center all 12 digits in one row — that's incorrect.
PNG or SVG — which should I download?
PNG for anywhere you'd send a screenshot — Slack messages, eBay listing photos, email attachments. The 4× option (1760×1224 px) prints crisply at the canonical UPC-A size. SVG for design tools (Figma, Illustrator, Inkscape) and any case where the barcode might be resized — it's vector and scales without quality loss.
Why can't I change the bar color?
GS1 specifies that UPC-A barcodes must have high-contrast dark bars on a light background to scan reliably. Black bars on white are the only combination that works across every retail scanner. Coloured bars or low-contrast palettes look fine on screen but fail at the cash register — so this tool deliberately doesn't offer those options.
What size should I print a UPC at?
The GS1 100% nominal size for UPC-A is 1.469″ × 1.020″ (37.29 mm × 25.93 mm). Print smaller than 80% of that and you risk scanner failures; print larger than 200% and the barcode wastes packaging real estate. The 1× PNG (440 × 306 pixels at 300 DPI) is exactly the canonical size; the 4× option is for high-resolution print proofing.