Toolhast

Free Online Barcode Generator

Free online barcode generator: create retail UPC-A, EAN-13, and Code 128 barcodes for Amazon, Shopify, and packaging. Download 300 DPI vector SVG and PNG free.

Enter 11 digits (12th check digit auto-calculates) or full 12 digits.

✓Auto-calculated GS1 Check Digit: 5
Auto-Filled

Label Dimensions & Formatting

80px
14px
0 12345 67890 5
100% In-Browser Vector Rendering (No Server Uploads)GS1 Standard Compliant

The Technical Guide to Barcode Symbologies, GS1 Standards, and Thermal Printing

In global e-commerce and retail supply chains, the optical barcode is the universal bridge connecting physical merchandise to automated inventory databases, point-of-sale (POS) registers, and fulfillment logistics centers. Whether you are launching an initial product line on Amazon FBA, fulfilling wholesale orders for big-box retailers like Walmart and Target, or managing thousands of warehouse bin locations, utilizing mathematically compliant, standards-accurate barcodes is paramount.

A misaligned barcode, an incorrect checksum digit, or a low-resolution raster graphic printed on packaging can trigger catastrophic consequences: rejected inventory shipments at Amazon distribution centers, expensive compliance chargebacks from retail buyers, or delays at airport customs. Toolhast’s free in-browser barcode generator eliminates these risks by generating exact, GS1-compliant vector geometric patterns directly on your device.

1. Symbology Matrix: Choosing the Right Barcode for Your Business

Different commercial sectors, retail platforms, and logistics carriers mandate specific 1D barcode symbologies. Understanding the structural capabilities, digit lengths, and character encodings of each standard prevents costly labeling mistakes:

SymbologyStandard Data LengthSupported CharactersPrimary Use CasesCheck Digit Algorithm
UPC-A12 DigitsNumeric Only (0–9)US & Canada Retail, Amazon US ASIN linkage, POS scanningGS1 Modulo-10 (Weight 3/1)
EAN-1313 DigitsNumeric Only (0–9)International Retail (Europe, Asia, UK, Australia), Global AmazonGS1 Modulo-10 (Variable Parity)
Code 128Variable LengthFull 128 ASCII (A–Z, a–z, 0–9, punctuation)Amazon FBA Box Labels, FNSKU, FedEx/UPS Tracking, Serial numbersISO/IEC 15417 Modulo-103
Code 39Variable Length43 Characters (A–Z, 0–9, -, ., $, /, +, %, space)Industrial Manufacturing, Automotive parts, Military supply tagsSelf-Checking (Asterisk Delimiters)
ITF-1414 DigitsNumeric Only (0–9)Master Shipping Cartons, Corrugated cases, Wholesale pallet distributionModulo-10 + Bearer Bar Frame

2. The Mathematics of GS1 Modulo-10 Check Digits

Both UPC-A and EAN-13 barcodes utilize a mandatory self-verifying checksum as their terminal character. This mathematical algorithm ensures that optical handheld laser scanners and flatbed checkout imagers immediately detect optical transmission errors, misread digits, or smudged print labels before transmitting data to the cash register or inventory server.

In a standard 12-digit UPC-A barcode, the first 11 digits represent your registered GS1 company prefix and specific product item reference number. The 12th digit is calculated as follows:

  1. Sum the odd-positioned digits: Starting from the left (positions 1, 3, 5, 7, 9, 11), add the digits together. Multiply this sum by 3.
  2. Sum the even-positioned digits: Add all digits at even positions (positions 2, 4, 6, 8, 10).
  3. Combine the results: Add the odd sum (multiplied by 3) to the even sum.
  4. Calculate modulo remainder: Determine the smallest number that, when added to this total, results in an exact multiple of 10. That value is your official check digit.

Toolhast executes this calculation automatically in real time. If you input only the first 11 digits of your UPC or the first 12 digits of your EAN, our engine determines and appends the mathematically required check digit instantly, preventing listing rejections on Amazon Seller Central.

3. Vector SVG vs. Raster PNG: Why Vector Quality Matters

Many free barcode makers online generate low-resolution JPEG or 72 DPI PNG graphics. When graphic designers place a 72 DPI image onto a product box or sticker label and scale it in packaging software, the vertical bars suffer from anti-aliasing blur—turning razor-sharp black boundaries into fuzzy gray gradient steps. Handheld scanners measure the exact width of black bars and white spaces down to fractions of a millimeter; anti-aliased edges cause optical pulse sensors to miscalculate bar widths and fail.

Toolhast resolves this through mathematical vector generation. Our tool emits clean <svg> elements defined by exact coordinate rectangles (<rect>) and crisp quiet-zone margins. Vector SVG files can be magnified to billboard dimensions or shrunk to a tiny pill-bottle sticker without losing a single micron of edge sharpness. For direct label printing, our 1-click PNG download pre-optimizes pixels at 300 DPI, making it instantly compatible with direct thermal and thermal transfer printers (such as Zebra ZD421, Rollo Commercial, and Dymo LabelWriter 450).

4. Best Practices for Printing Amazon FBA & Retail Labels

To ensure 100% first-pass scan rates across high-speed sorting conveyors and distribution centers:

  • Respect the Quiet Zones: Every 1D barcode requires a blank, unprinted margin on both the left and right sides (at least 10 times the width of the narrowest bar). Never crop or place artwork inside this quiet margin.
  • Maintain High Contrast: Scanners rely on red-spectrum laser reflection. Always print dark black bars on a pure, opaque white background. Never use red or metallic gold bars, as red laser sensors perceive red ink as white space.
  • Label Sheet Alignment: If printing on standard Avery 5160 or 30-up address sticker sheets, test print one plain sheet on standard paper first. Hold it against the light over your label sheet to verify that horizontal and vertical gutter alignments match your printer's feed rollers.
  • Curved Surface Orientation: If adhering barcodes to cylindrical bottles or cosmetic jars, orient the bars horizontally (ladder style) rather than vertically (picket fence style) to prevent curvature from distorting apparent bar spacing.

How to generate free retail and shipping barcodes online

  1. Select your target symbology: UPC-A for US/Amazon retail, EAN-13 for international retail, Code 128 for Amazon FBA cartons, or Code 39 for inventory.

  2. Enter your product data or SKU numbers; Toolhast automatically verifies or calculates the official GS1 Modulo-10 checksum in real time.

  3. Adjust bar height, module density scale (1x–4x), quiet zone margins, and human-readable text labels to match your packaging specifications.

  4. Preview your barcode or test the Avery 30-up label sheet mockup, then click 'Download Vector SVG' or 'Download PNG (300 DPI)' for crystal-clear thermal printing.

Examples

Input
Amazon US Brand Listing: Organic Matcha Green Tea Canister (11-digit manufacturer code: 01234567890)
Output
Auto-computes check digit 5 to yield standard 12-digit UPC-A (0 12345 67890 5) with crisp vector SVG paths

100% compliant with GS1 General Specifications and Amazon US ASIN product identity validation.

Input
Amazon FBA Logistics Carton: Mixed SKU Shipment Box ID (Alphanumeric tracking string: FNSKU-X001928A)
Output
Encodes high-density Code 128 with Modulo-103 checksum, start B pattern, and stop delimiter (13 modules)

Optimized for high-speed laser and 203/300 DPI thermal label printers (Zebra, Rollo, Dymo).

Frequently asked questions

Can I use these barcodes for selling products on Amazon?

Yes. For Amazon US, generate standard 12-digit UPC-A barcodes, and for international marketplaces, use 13-digit EAN-13 barcodes. For fulfillment warehouse carton tracking and FNSKU product units, select Code 128. Always ensure your company prefix is registered through GS1 to prevent listing rejections on Amazon Brand Registry.

What is the difference between UPC-A and EAN-13 barcodes?

UPC-A is a 12-digit standard primarily used across the United States and Canada for point-of-sale retail scanning. EAN-13 is a 13-digit superset used throughout Europe, Asia, and globally. Most modern optical barcode scanners read both symbologies seamlessly, but North American retail systems strictly expect standard 12-digit UPC barcodes.

How does the Modulo-10 check digit calculation work?

The final digit of UPC-A and EAN-13 barcodes is a checksum calculated using a modulo-10 algorithm. Odd-positioned digits and even-positioned digits are multiplied by alternating weights of three and one. Their sum is subtracted from the next multiple of ten to ensure scanners detect mistyped digits or damaged labels instantly.

Why should I download barcodes in vector SVG format?

Scalable Vector Graphics (SVG) retain razor-sharp mathematical vectors regardless of print magnification. Unlike pixelated raster images, vector barcodes ensure crisp edges at any thermal printer DPI or packaging scale. Packaging designers can import SVG files directly into Adobe Illustrator, Photoshop, or InDesign without scanning distortion or optical read errors.

Which barcode format should I use for shipping cartons?

For outer shipping cartons and corrugated master packaging, use ITF-14 or Code 128. ITF-14 features thick horizontal bearer bars that protect optical scanning integrity against uneven cardboard surfaces. Code 128 is preferred for FedEx, UPS, and Amazon FBA logistical carton labels requiring alphanumeric tracking IDs and serial numbers.

Are my generated barcodes and product numbers stored anywhere?

No. All barcode mathematical encodings, parity calculations, and SVG graphics render 100% client-side inside your browser memory using JavaScript and HTML5 Canvas. Your product numbers, private SKUs, and inventory identifiers are never transmitted to external cloud servers, preventing corporate leaks, counterfeit scanning, or unauthorized third-party tracking.

  • Amazon Image Padder

    Free Amazon image padder: fit product photos into 2000x2000 pure white square images for Amazon listings without distortion. 100% private in-browser tool.

  • Amazon FBA Calculator

    Free Amazon FBA calculator: calculate FBA fulfillment fees, referral fees, storage costs, and net profit margins instantly. 100% private in-browser tool.

  • Image Compressor

    Free online image compressor: compress JPG, PNG, and WebP images to reduce file size without quality loss. 100% private in-browser with zero uploads.

  • Image Resizer

    Free online image resizer: resize JPG, PNG, and WebP images by exact pixels or percentage with aspect ratio lock. 100% private in-browser with zero uploads.

Browse all e-commerce tools

Private: this tool runs in your browser. Nothing you type is uploaded.

Last updated