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

Barcode Generator

Make UPC, EAN, Code 128, Code 39 and 5 other barcode formats — runs in your browser.

General-purpose; any printable ASCII

Display options

Everything runs in your browser. Nothing is uploaded.

What is barcode generator?

A barcode generator turns a string of text or digits into the black-and-white striped pattern that retail scanners, shipping conveyors, and inventory systems read optically. This tool covers the 8 most-used 1D (linear) barcode formats: UPC-A (North American retail), EAN-13 and EAN-8 (international retail), ITF-14 (shipping cartons), Code 128 and Code 39 (general-purpose), Codabar (libraries and medical), and MSI Plessey (warehouse).

Pick a format from the dropdown and the input updates with a sample value for that format. Type your own data and the live preview redraws as you type. The check-digit formats (UPC, EAN, ITF-14) automatically compute the trailing check digit if you only enter the data digits — or validate it and offer to correct it if you enter a full code with a wrong digit.

Everything runs in your browser — what you type never leaves your device. Downloads are PNG (for screenshots, listings, emails) and SVG (for design tools and lossless scaling).

For UPC-A specifically, the dedicated UPC generator offers a richer mismatch experience and product-code guidance focused on retail use. The page you’re on is the right starting point for everything else.

When to use a barcode generator

  • Inventory and warehouse labels — Print Code 128 or Code 39 barcodes from your in-house SKU numbers for picking workflows, asset tagging, and stock counts. No GS1 registration needed for internal use.
  • Event badges and tickets — Generate Code 128 barcodes from attendee IDs or ticket codes for conference check-in, museum admission, or class attendance scanners. Each badge gets a unique scannable code.
  • Product prototyping and packaging mockups — Drop a real-looking UPC, EAN-13, or ITF-14 barcode onto comp art before manufacturing. Use the SVG download to scale to any print size without quality loss.

How to use the Barcode Generator

  1. Pick the formatChoose from UPC-A, EAN-13, EAN-8, ITF-14, Code 128, Code 39, Codabar, or MSI Plessey. The hint below the dropdown explains what each format expects.
  2. Type or paste your dataThe input updates the live preview as you type. Check-digit formats (UPC, EAN, ITF-14) accept either the raw data or the full code with check digit; we'll compute or validate it for you.
  3. Download as PNG or SVGPNG for screenshots and listing photos (1×, 2×, or 4× size). SVG for design tools that scale without quality loss. Copy the encoded data to clipboard with the Copy button.

Worked examples

Code 128 — any text

Input:  HELLO-2026
Output: Standard Code 128 barcode encoding the literal string

EAN-13 — auto check digit

Input:  590123412345
Output: Full 13-digit EAN-13 barcode: 5901234123457 (check digit 7 added)

Code 39 — uppercase only

Input:  PART-12345
Output: Code 39 barcode wrapped with implicit start/stop characters

Frequently asked questions

Which barcode format should I use?
Code 128 for general-purpose alphanumeric data — the most flexible and densest 1D format. Code 39 for uppercase-only inventory tags (older but widely supported). UPC-A or EAN-13 for retail products (requires a GS1-issued prefix to sell on Amazon/Walmart). ITF-14 for shipping cartons. Codabar for libraries and medical labs. MSI Plessey for warehouse shelf labels. If you're unsure, Code 128 is the right default for non-retail use.
Why won't my Code 39 input accept lowercase letters?
Code 39 only encodes uppercase letters A–Z, digits 0–9, and the symbols - . space $ / + %. That's the complete character set defined by the standard. Lowercase letters don't exist in Code 39's encoding tables. If you need lowercase or extended ASCII, use Code 128 instead.
What is a check digit?
A single digit appended to the end of UPC, EAN, and ITF-14 barcodes that lets a scanner detect read errors. It's computed from the other digits via a Modulo-10 weighted sum: from the right, alternate weights of 3 and 1, sum the products, and the check digit is whatever makes the total a multiple of 10. If you enter the data without the check digit, this tool computes it for you. If you enter the full code with a wrong check digit, it offers to either fix it or render exactly what you typed.
Can I use a generated UPC to sell products on Amazon or Walmart?
Only if you already own the GS1 prefix the number is built on. Amazon and Walmart both require GS1-issued UPCs and check them against the GS1 GEPIR registry. 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. If you specifically want UPC-A with check-digit autocorrect, use the dedicated UPC generator. To register a real prefix, contact GS1.
What about QR codes or 2D barcodes?
This tool generates 1D linear barcodes — the kind you see on retail products and shipping labels. QR codes, Data Matrix, PDF417, and Aztec are 2D codes with a very different UX (size, error-correction levels, content type: URL/text/wifi/contact). They warrant a dedicated tool, which we'll build separately. For now, this page covers the 8 most common 1D formats.
Which format is the highest density?
Code 128, by a comfortable margin. It uses 11-module-wide patterns to encode each character (vs Code 39's 13), and supports a numeric-only Mode C that packs two digits per character — so a 12-digit numeric string encodes in roughly half the width of a Code 39 equivalent. For mixed alphanumeric data, Code 128 is also the most compact choice.
PNG or SVG — which should I download?
PNG for anywhere you'd send a screenshot — Slack messages, listing photos, email attachments. The 4× option produces a high-resolution bitmap that prints crisply. SVG for design tools (Figma, Illustrator, Inkscape) and any case where the barcode might be resized — vector format scales to any size without quality loss.
What size should I print a barcode at?
Depends on the format. UPC-A's GS1 nominal size is 1.469″ × 1.020″; print no smaller than 80% of that. EAN-13's nominal is 1.469″ × 1.014″ at the same 80–200% scaling rule. ITF-14 shipping codes are 1.5″ × 0.5″ minimum, much larger when on cartons. Code 128 and Code 39 have no fixed size, but the bar height should be at least 15% of the barcode's width (or 0.25″, whichever is greater) for reliable scanning.