Skip to content

Barcode generator

Type a number, get a barcode that scans.

Your barcode appears here. Try 03600029145.

How to use Barcode generator

  1. Select the barcode symbology. Pick UPC-A, EAN-13, or EAN-8 for retail items, Code 128 or Code 39 for SKUs and asset tags, or ITF-14 for outer cartons.
  2. Enter one value or switch to Many at once. Type a single code under Value, or paste up to 5,000 lines with optional comma-separated captions under Values.
  3. Adjust bar height and module size. Choose Short, Medium, or Tall bars, set Small, Medium, or Large module width, and toggle Show the numbers under the bars.
  4. Download your barcode or label sheet. Save a single SVG or PNG, or export a PDF sheet matched to Avery 5160, Avery L7160, or a ZIP of individual images.

Everything you type stays in this browser on your device. Nothing is uploaded, and your saved details are never sent anywhere.

Supported 1D barcode symbologies and GS1 check digits

Choosing the right symbology depends on whether the label goes onto a retail shelf item, a warehouse bin, or a corrugated shipping carton. Under Type, you can switch between six linear standards, each with its own character set, payload length, and check-digit behavior.

Retail UPC-A, EAN-13, and EAN-8 modulo-10 check digits

Retail point-of-sale codes encode fixed-length numeric strings using a GS1 Modulo-10 check digit weighted 3 and 1 from the right-most data digit. Leave the final digit off and the encoder computes it automatically, or type the full length to verify an existing GTIN.

UPC-A accepts 11 payload digits (12 with check digit) for North American retail, while EAN-13 takes 12 payload digits (13 total) with an 11-module quiet zone for international retail. EAN-8 compresses 7 data digits into 8 total digits for small packaging where a full 13-digit symbol would wrap around curved edges.

Alphanumeric Code 128, Code 39, and ITF-14 carton frames

Warehouse, fulfillment, and logistics labels rely on alphanumeric or heavy-duty carton encodings rather than point-of-sale numbers. If you need 2D matrix payloads for URLs or Wi-Fi credentials instead of linear bars, you can create 2D matrix codes when you need URLs or Wi-Fi payloads in the companion tool.

Symbology Input length and characters Check digit behavior Typical use case
UPC-A 11 or 12 digits GS1 Modulo-10 added or checked US and Canadian retail packaging
EAN-13 12 or 13 digits GS1 Modulo-10 added or checked UK, European, and Australian retail
EAN-8 7 or 8 digits GS1 Modulo-10 added or checked Cosmetics, vials, and small packs
Code 128 Variable ASCII text Internal Modulo-103 symbol check SKUs, shipping, Amazon FNSKU
Code 39 Uppercase letters, digits, symbols Optional in standard workflows Asset tags and ID badges
ITF-14 13 or 14 digits GS1 Modulo-10 with bearer frame Corrugated outer shipping cartons

Should you export a barcode as SVG, PNG, or PDF sheet?

Export as SVG for vector design layouts, choose PNG for pixel-based documents, or generate a PDF label sheet when printing batches on Avery-compatible sticker stock. Each format uses the same underlying module geometry so bar proportions remain consistent across screen previews and physical labels.

Vector SVG primitives and integer-aligned PNG canvases

Vector SVG output writes exact <rect> elements in module units (1 px, 2 px, or 4 px under Size, paired with 40 px, 80 px, or 140 px under Bar height). Because the W3C Scalable Vector Graphics (SVG) 2 Specification defines resolution-independent shapes, SVG files stay sharp in print shops and desktop layout apps at any magnification.

Raster PNG export draws directly onto an HTML5 <canvas> at 2x the selected module and bar height. That avoids browser SVG rasterization blur and locks black bars and white spaces to crisp integer pixel boundaries.

Batch ZIP archives and Avery-compatible PDF label sheets

Switching How many to Many at once lets you paste up to 5,000 barcodes, with an optional comma and caption per line to print a product name above each code. You can export a PNG images (ZIP) archive, an SVG images (ZIP) archive, or a multi-page Label sheet (PDF) formatted for US Letter (such as Avery 5160, 30 per sheet) or A4 (such as L7160).

When preparing outbound boxes alongside carton barcodes, you can also format full parcel address labels for outbound cartons on matching label stock. Setting Copies of each (up to 1,000 per line) and Skip used on sheet 1 lets you finish partially used sticker sheets without waste.

Why printed barcodes fail to scan and how to fix them

Hardware laser scanners and phone cameras reject barcodes when bar-to-space ratios distort during scaling, ink spreads into adjacent gaps, or margins get clipped. Checking three print settings before running a full batch prevents unreadable labels.

Preserving quiet zones and 100% print scale

Every linear barcode requires blank white space on both sides, known as the quiet zone, so the scanner can detect where the symbol begins and ends. Cropping an exported image tightly to the outermost black bars removes that margin and causes immediate read failures.

Printer drivers also default to “Fit to page” or “Shrink to printable area,” which alters the physical width of narrow modules and misaligns die-cut label grids. Always print PDF sheets at 100% / Actual size, and toggle Draw label outlines (test print) onto plain paper first to check alignment against your sticker sheet.

Avoiding subpixel blur and ITF-14 half-module rounding

Thin 1-pixel anti-aliased gray edges confuse optical thresholds on thermal and inkjet printers. In the PNG exporter, disabling smoothing per the MDN CanvasRenderingContext2D.imageSmoothingEnabled API keeps every bar edge strictly binary black on white.

ITF-14 symbols present a special edge case because wide bars are 2.5 modules wide and the surrounding bearer frame is 4 modules thick. The canvas renderer automatically rounds the module multiplier to an even integer for ITF-14 so half-module bars land on exact pixels without fuzzy edges; if you also print 2D codes, verify camera decoding on 2D codes before printing a batch.

Tip: Print a single test page on plain paper, hold it behind your Avery label sheet against a window, and scan one barcode with a phone or warehouse scanner before feeding expensive adhesive stock.

GS1 ownership, batch limits, and local browser privacy

Generating a scannable graphic is separate from registering a commercial product identifier in global retail databases. Knowing that boundary helps teams avoid marketplace rejections while keeping internal SKU lists private.

Image generation versus GS1 number registration

This tool encodes any valid number you supply into compliant bars and spaces, but creating the image does not register a GTIN with GS1 or reserve a UPC/EAN prefix. Retailers and marketplaces verify company ownership through GS1 registries before allowing a product listing.

For internal warehouse bins, asset tags, or Amazon FNSKU labels, Code 128 and Code 39 require no paid GS1 license. You can assign your own alphanumeric SKU conventions and pair them with a retail shelf price tag maker for in-store displays.

Handling up to 5,000 labels locally without server uploads

All encoding, canvas rasterization, ZIP packaging, and PDF sheet imposition run inside your browser tab using pure TypeScript encoders and a local Web Worker. According to the Library of Congress PDF 1.7 Format Description, PDF stores vector paths and physical dimensions in 1/72-inch points, ensuring accurate grid spacing across operating systems.

Batches are capped at 5,000 total barcodes per run to keep browser memory responsive on standard laptops. Your product SKUs, FNSKUs, and captions never leave your device.

Questions

Do I need to buy a GS1 barcode number before printing retail labels?

Yes, if you plan to sell products through major retailers or online marketplaces. Official UPC-A and EAN-13 prefixes come from GS1, which links the company prefix to your business. Creating a barcode image in your browser only renders the bars for a number you already own or an internal SKU.

Which barcode format should I use for Amazon FNSKU labels?

Choose Code 128 for Amazon FNSKU inventory stickers. Switch to Many at once, paste each FNSKU followed by a comma and product title, select a 30-per-sheet label size such as Avery 5160, and set Copies of each to match your shipment quantity.

Why will my printed barcode not scan?

Most scan failures happen when a PDF viewer shrinks the page with Fit to page instead of printing at 100% scale, or when artwork crowds the blank quiet zone on either side of the bars. Verify one test label with a handheld scanner or phone app before printing the full run.

Should I download a barcode as SVG or PNG?

Download SVG whenever you are placing the barcode into Illustrator, Figma, InDesign, or a print layout because vector paths scale to any size without losing edge crispness. Choose PNG for quick insertion into documents or spreadsheets where vector SVG import is unavailable.

How does automatic GS1 check digit calculation work?

For UPC-A, EAN-13, EAN-8, and ITF-14, the encoder weights data digits alternately by 3 and 1 starting from the rightmost payload digit, sums the products, and finds the difference to the next multiple of 10. If you omit the final digit, it appends it; if you include a wrong one, it flags the mismatch.

Can I skip already-used labels on a partially used Avery sheet?

Yes. When Save as is set to Label sheet (PDF), enter the number of missing stickers in Skip used on sheet 1, from 0 up to one less than the sheet capacity. The PDF generator leaves those initial slots blank and starts printing on the first intact label.

Updated